Skip to content

Commit a8c357d

Browse files
committed
feat(build): update npm publish workflow for oidc
1 parent aa0b83f commit a8c357d

1 file changed

Lines changed: 7 additions & 6 deletions

File tree

.github/workflows/npm-publish.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
name: Npm.js deploy
22
permissions:
3+
id-token: write
34
contents: read
45

56
on:
@@ -10,12 +11,16 @@ jobs:
1011
build:
1112
runs-on: ubuntu-latest
1213
steps:
13-
- uses: actions/checkout@v3
14-
- uses: actions/setup-node@v3
14+
- uses: actions/checkout@v4
15+
- uses: actions/setup-node@v4
1516
with:
1617
node-version: 22
1718
cache: 'npm'
1819
registry-url: 'https://registry.npmjs.org'
20+
21+
- name: Update NPM
22+
run: npm install -g npm@latest
23+
1924
- run: echo "VERSION=${GITHUB_REF/refs\/tags\//}" >> $GITHUB_ENV
2025
- run: echo ${VERSION}
2126

@@ -60,11 +65,7 @@ jobs:
6065
- name: Publish igniteui-angular
6166
run: npm publish --tag ${NPM_TAG}
6267
working-directory: dist/igniteui-angular
63-
env:
64-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
6568

6669
- name: Publish igniteui-angular-i18n
6770
run: npm publish --tag ${NPM_TAG}
6871
working-directory: dist/igniteui-angular-i18n
69-
env:
70-
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}

0 commit comments

Comments
 (0)