Skip to content

Commit c22aac2

Browse files
authored
devops: migrate to OIDC NPM publishing (#157)
1 parent 031789f commit c22aac2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,15 @@ jobs:
77
runs-on: ubuntu-22.04
88
permissions:
99
contents: read
10-
id-token: write
10+
id-token: write # Required for OIDC
1111
steps:
1212
- uses: actions/checkout@v4
1313
- uses: actions/setup-node@v4
1414
with:
1515
node-version: 20
1616
registry-url: https://registry.npmjs.org/
17+
# Ensure npm 11.5.1 or later is installed (for OIDC npm publishing)
18+
- name: Update npm
19+
run: npm install -g npm@latest
1720
- run: npm ci
18-
- run: npm publish --provenance
19-
env:
20-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
21+
- run: npm publish

0 commit comments

Comments
 (0)