Skip to content

Commit 497a5cc

Browse files
authored
build: update npm publish workflow for oidc (#2032)
1 parent 82c172a commit 497a5cc

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/npm-publish.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Npm.js deploy
2+
23
permissions:
4+
id-token: write
35
contents: read
46

57
on:
@@ -16,6 +18,10 @@ jobs:
1618
node-version: '22'
1719
cache: 'npm'
1820
registry-url: 'https://registry.npmjs.org'
21+
22+
- name: Update NPM
23+
run: npm install -g npm@latest
24+
1925
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2026
- run: echo ${VERSION}
2127

@@ -36,5 +42,3 @@ jobs:
3642
- name: Publish the package
3743
run: npm publish --tag ${NPM_TAG}
3844
working-directory: dist
39-
env:
40-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)