Skip to content

Commit 6d822d5

Browse files
committed
Update npm publish pipeline to support trusted provider
1 parent 0380d16 commit 6d822d5

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/npm-publish-github-packages.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,15 @@ jobs:
2525
registry-url: 'https://registry.npmjs.org'
2626
cache: "npm"
2727

28+
- name: Upgrade npm for OIDC
29+
run: |
30+
npm install -g npm@11.5.1
31+
2832
- name: Install dependencies
2933
run: npm ci
3034

3135
- name: Build distribution
3236
run: npm run build:dist
3337

3438
- name: Publish to npm
35-
run: npm publish --access public
39+
run: npm publish --access public --tag latest

0 commit comments

Comments
 (0)