Skip to content

Commit

Permalink
ci: update GitHub Actions workflow for Node.js CI
Browse files Browse the repository at this point in the history
Added `registry-url` to the setup-node step and `NPM_CONFIG_PROVENANCE` to the publish step in the GitHub Actions workflow for Node.js CI. This ensures that the workflow uses the correct npm registry and enables package provenance tracking for published packages.
  • Loading branch information
shorwood committed Apr 26, 2024
1 parent cb24ab2 commit 4f689fa
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ jobs:
with:
node-version: 20.x
cache: "pnpm"
registry-url: "https://registry.npmjs.org/"

# --- Install, build, and test.
- run: pnpm install
Expand All @@ -44,3 +45,4 @@ jobs:
run: pnpm publish:ci --registry https://registry.npmjs.org
env:
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
NPM_CONFIG_PROVENANCE: true

0 comments on commit 4f689fa

Please sign in to comment.