Skip to content

Commit 44032d5

Browse files
committed
Package updates: token > OIDC
1 parent 8a09db2 commit 44032d5

File tree

1 file changed

+12
-7
lines changed

1 file changed

+12
-7
lines changed

.github/workflows/on-merge-main-deploy-npmjs.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,22 +1,27 @@
1-
# npmjs Package Deployment
2-
# https://docs.npmjs.com/about-packages-and-modules
3-
41
name: Verify and Deploy to npmjs
2+
3+
permissions:
4+
id-token: write
5+
contents: read
6+
57
on:
68
push:
7-
branches:
8-
- main
9+
tags:
10+
- 'v*'
11+
912
jobs:
1013
deploy_npmjs_package:
1114
runs-on: ubuntu-latest
1215
steps:
1316
- uses: actions/checkout@v4
17+
1418
- uses: actions/setup-node@v4
1519
with:
1620
node-version: '20.x'
1721
registry-url: 'https://registry.npmjs.org'
22+
23+
- name: Update npm to latest
24+
run: npm install -g npm@latest
1825
- run: npm ci
1926
- run: npm run npm-build-package
2027
- run: cd dist/npm && npm publish
21-
env:
22-
NODE_AUTH_TOKEN: ${{ secrets.NPM_AUTH_TOKEN }}

0 commit comments

Comments
 (0)