Skip to content

Commit de1ba31

Browse files
authored
Merge pull request #163 from LibreSign/fix/update-to-provenance
fix: update to provenance
2 parents 6051ed5 + 404f5c4 commit de1ba31

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ on:
77
permissions:
88
contents: read
99
packages: write
10+
id-token: write
1011

1112
jobs:
1213
publish:
@@ -30,9 +31,10 @@ jobs:
3031
fallbackNpm: '^10'
3132

3233
- name: Set up node ${{ steps.versions.outputs.nodeVersion }}
33-
uses: actions/setup-node@v3
34+
uses: actions/setup-node@v4
3435
with:
3536
node-version: ${{ steps.versions.outputs.nodeVersion }}
37+
registry-url: 'https://registry.npmjs.org'
3638

3739
- name: Set up npm ${{ steps.versions.outputs.npmVersion }}
3840
run: npm i -g npm@"${{ steps.versions.outputs.npmVersion }}"
@@ -45,14 +47,12 @@ jobs:
4547
npm run build:lib
4648
4749
- name: Publish
48-
run: |
49-
npm config set //registry.npmjs.org/:_authToken=$NODE_AUTH_TOKEN
50-
npm publish
50+
run: npm publish --provenance --access public
5151
env:
5252
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
5353

5454
- name: Setup Github Package Registry
55-
uses: actions/setup-node@v3
55+
uses: actions/setup-node@v4
5656
with:
5757
registry-url: 'https://npm.pkg.github.com'
5858

0 commit comments

Comments
 (0)