Skip to content

Commit dc8c3c5

Browse files
author
John Gilbert
committed
npm-oidc
1 parent 0a2576e commit dc8c3c5

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/cd.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
# push:
66
# branches: [ master ]
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
@@ -14,11 +18,12 @@ jobs:
1418
with:
1519
node-version: 18.x
1620
registry-url: https://registry.npmjs.org/
21+
# Ensure npm 11.5.1 or later is installed
22+
- name: Update npm
23+
run: npm install -g npm@latest
1724
- run: npm ci
1825
- run: npm test
1926
- run: npm publish
20-
env:
21-
NODE_AUTH_TOKEN: ${{secrets.NODE_AUTH_TOKEN}}
2227
- uses: sergeysova/jq-action@v2
2328
name: Derive Version
2429
id: version

0 commit comments

Comments
 (0)