Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 6 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,12 @@ jobs:
registry-url: ${{ inputs.registry }}
scope: ${{ inputs.scope }}

- name: Enable Socket Firewall
uses: SocketDev/action@be1f253a41351d59095f8d7f1425985097dd1054
with:
mode: firewall-free
shims: true

- name: Ensure npm version
if: ${{ !inputs.dry-run }}
run: |
Expand Down
1 change: 1 addition & 0 deletions publish-npm/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ for the package scope, Node.js version, registry URL, and other options. The wor
- **Downloads Artifacts**: Downloads specified artifacts if needed. 📦
- **Checks Out Your Repository**: Retrieves your code. 📥
- **Sets Up Node.js**: Installs the specified Node.js version and configures the `.npmrc` file. ⚙️
- **Enables Socket Firewall**: Blocks installation of any package on npmjs.com confirmed as malware by Socket, for every subsequent npm/yarn/pnpm call in the job. 🛡️
- **Installs Dependencies**: Uses the specified install command (default: `npm ci`) to install the dependencies. 📦
- **Builds the Package**: Builds the package using the specified build command (default: `npm run build`). 🔨
- **Performs Type Checking**: Runs type checking if configured. 🔍
Expand Down