Skip to content

Commit b7cda17

Browse files
Migrate to Trusted Publishing with provenance attestation (#341)
https://docs.npmjs.com/trusted-publishers
1 parent b4246f2 commit b7cda17

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

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

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,19 @@ on:
88
jobs:
99
publish:
1010
runs-on: ubuntu-latest
11+
permissions:
12+
contents: read
13+
id-token: write
1114
steps:
1215
- name: Checkout
1316
uses: actions/checkout@v5
17+
- name: Set up Node.js
18+
uses: actions/setup-node@v4
19+
with:
20+
node-version-file: '.nvmrc'
21+
registry-url: 'https://registry.npmjs.org'
22+
- name: Update npm
23+
run: npm install -g npm@latest
1424
- name: Publish
15-
env:
16-
NPM_TOKEN: ${{secrets.NPM_TOKEN}}
1725
run: |
18-
npm config set registry 'https://wombat-dressing-room.appspot.com/'
19-
npm config set '//wombat-dressing-room.appspot.com/:_authToken' '${NPM_TOKEN}'
20-
npm publish
26+
npm publish --provenance --access public

0 commit comments

Comments
 (0)