Skip to content

Commit 0d62046

Browse files
committed
ci: update permissions for publish job in workflow
1 parent efabbab commit 0d62046

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

.github/workflows/publish-npm.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- uses: actions/checkout@v4
1316
- name: Use Node.js 20.x
@@ -19,7 +22,6 @@ jobs:
1922
run: |
2023
npm install
2124
npm run build
22-
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
2325
# print the NPM user name for validation
2426
npm whoami
2527
VERSION=$(node -p "require('./package.json').version" )

0 commit comments

Comments
 (0)