Skip to content

Commit 6298215

Browse files
committed
ci: use NPM trusted publishers
1 parent aee67cb commit 6298215

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

.github/workflows/part-publish.yml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
jobs:
99
npm:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
id-token: write
1113

1214
steps:
1315
- name: Download all workflow run artifacts
@@ -17,20 +19,17 @@ jobs:
1719
with:
1820
registry-url: "https://registry.npmjs.org"
1921

22+
- name: Update npm
23+
run: npm install -g npm@latest
24+
2025
- name: npm publish coalesce-vue
2126
run: npm publish ./coalesce-vue/*.tgz --tag ${{ inputs.prereleaseSlug || 'latest' }} --access public
22-
env:
23-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2427

2528
- name: npm publish coalesce-mcp
2629
run: npm publish ./coalesce-mcp/*.tgz --tag ${{ inputs.prereleaseSlug || 'latest' }} --access public
27-
env:
28-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
2930

3031
- name: npm publish coalesce-vue-vuetify
3132
run: for f in ./coalesce-vue-vuetify*/*.tgz; do npm publish $f --tag ${{ inputs.prereleaseSlug || 'latest' }} --access public; done
32-
env:
33-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
3433

3534
nuget:
3635
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)