Skip to content

Commit

Permalink
fix(ci): correct some permissions (#4)
Browse files Browse the repository at this point in the history
kinda misread the docs there 💀
  • Loading branch information
TTtie authored Nov 15, 2024
1 parent 2cd3936 commit a4f7555
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ jobs:
release:
name: ${{ github.event_name == 'release' && 'Release' || 'Pack' }} the project
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
needs: test
steps:
- name: Setup Node.js
Expand All @@ -86,5 +89,5 @@ jobs:
- name: Publish the package to NPM
if: github.event_name == 'release'
env:
NPM_TOKEN: ${{ github.event_name == 'release' && secrets.NPM_TOKEN || '' }}
NODE_AUTH_TOKEN: ${{ github.event_name == 'release' && secrets.NPM_TOKEN || '' }}
run: npm publish --provenance --access public

0 comments on commit a4f7555

Please sign in to comment.