Skip to content

Commit 32e120c

Browse files
committed
fix(cd): using new OIDC npmjs deploy
1 parent 06fbfb5 commit 32e120c

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,18 @@ on:
44
release:
55
types: [created]
66

7+
permissions:
8+
id-token: write # Required for OIDC
9+
contents: read
10+
711
jobs:
812
build:
913
runs-on: ubuntu-latest
1014
steps:
1115
- uses: actions/checkout@v2
1216
- uses: actions/setup-node@v1
1317
with:
14-
node-version: 12
18+
node-version: 20
1519
registry-url: 'https://registry.npmjs.org'
1620
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
1721
- run: echo ${VERSION}

0 commit comments

Comments
 (0)