Skip to content

Commit

Permalink
Updated provenance permissions in CI
Browse files Browse the repository at this point in the history
  • Loading branch information
iwoplaza committed Dec 18, 2024
1 parent 1ec540c commit e603c0a
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/publish-to-npm.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- uses: actions/checkout@v4

Expand All @@ -26,7 +29,7 @@ jobs:
- name: Install dependencies
run: pnpm install --recursive --frozen-lockfile

- run: pnpm publish-package
- run: pnpm publish-package -- --provenance --access public
working-directory: ./packages/typed-binary
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 0 additions & 1 deletion scripts/publish-to-npm.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@ Release channel: ${colors.Cyan}${channel ?? '<LATEST>'}${colors.Reset}
try {
await promiseSpawn('pnpm', [
'publish',
'--provenance',
...(channel ? ['--tag', channel] : []),
...args._,
]);
Expand Down

0 comments on commit e603c0a

Please sign in to comment.