Skip to content

Commit c455392

Browse files
committed
1 parent 1ae13a2 commit c455392

File tree

1 file changed

+10
-8
lines changed

1 file changed

+10
-8
lines changed

.github/workflows/publish-on-tag.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,24 @@ name: publish-on-tag
33
on:
44
push:
55
tags:
6-
- '*'
6+
- '*'
77

88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- name: Checkout
13-
uses: actions/checkout@v2
16+
uses: actions/checkout@v4
1417
- name: Set up Node.js
15-
uses: actions/setup-node@v3
18+
uses: actions/setup-node@v4
1619
with:
1720
node-version-file: '.nvmrc'
21+
registry-url: 'https://registry.npmjs.org'
22+
- name: Update npm
23+
run: npm install -g npm@latest
1824
- name: Publish
19-
env:
20-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
2125
run: |
22-
npm config set registry 'https://wombat-dressing-room.appspot.com/'
23-
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
24-
npm publish
26+
npm publish --provenance --access public

0 commit comments

Comments
 (0)