Skip to content

Commit fa1db7b

Browse files
authored
switch to trusted publishing for npmjs.com (#107)
1 parent d215a3e commit fa1db7b

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,17 @@ jobs:
1717
# registry-url is required for releasing packages
1818
registry-url: "https://registry.npmjs.org"
1919

20+
- name: Install latest npm cli
21+
run: npm install -g npm@latest
22+
2023
- name: npm install
2124
run: npm ci
2225

2326
- name: build
2427
run: npm run build
2528

2629
- name: Publish package
27-
# --provenance enables the automatic generation of provenance statements
30+
# --provenance enables the automatic generation of provenance statements (when using trusted publisher, this is automatically enabled and therefore optional)
2831
# --access public is only hard required for the initial release, but it doesn't hurt having it setup
32+
# npm version >=11.5.1 required for trusted publisher
2933
run: npm publish --provenance --access public
30-
env:
31-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)