Skip to content

Commit 7b96795

Browse files
Merge pull request #70 from IgniteUI/btraykov/oidc-trusted-publishing-npmjs-com
Configure OIDC trusted publishing to npmjs.com
2 parents 9377665 + 382588b commit 7b96795

1 file changed

Lines changed: 10 additions & 5 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,17 +5,24 @@ name: Npm.js deploy
55

66
on:
77
release:
8-
types: [created]
8+
types: [created]
9+
10+
permissions:
11+
id-token: write
12+
contents: read
913

1014
jobs:
1115
npm-publish:
1216
runs-on: ubuntu-latest
1317
steps:
1418
- uses: actions/checkout@v6
15-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
1620
with:
17-
node-version: 20
21+
node-version: 22
22+
cache: 'npm'
1823
registry-url: 'https://registry.npmjs.org'
24+
- name: Update NPM
25+
run: npm install -g npm@latest
1926
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2027
- run: echo ${VERSION}
2128
- run: npm ci
@@ -28,5 +35,3 @@ jobs:
2835
working-directory: lib
2936
- run: npm publish --tag ${NPM_TAG}
3037
working-directory: lib
31-
env:
32-
NODE_AUTH_TOKEN: ${{secrets.INFRAGISTICS_NPM_TOKEN}}

0 commit comments

Comments
 (0)