Skip to content

Commit e9b2e21

Browse files
committed
add: permission id-token
1 parent e481bf3 commit e9b2e21

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/publish.yml

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
name: Publish Package to npmjs
2+
23
on: workflow_dispatch
4+
5+
permissions:
6+
id-token: write # Add this line
7+
38
jobs:
49
build:
510
runs-on: ubuntu-latest
@@ -12,7 +17,6 @@ jobs:
1217
registry-url: 'https://registry.npmjs.org'
1318
- run: npm install
1419
- run: npm test
15-
- run: npm run build
1620
- run: npm publish --provenance --access public
1721
env:
1822
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)