Skip to content

Commit 673543a

Browse files
committed
fix npm
1 parent b0ac933 commit 673543a

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ jobs:
6262
permissions:
6363
contents: read
6464
issues: write
65+
id-token: write # required for provenance
6566
steps:
6667
- uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444
6768
with:
@@ -76,10 +77,9 @@ jobs:
7677
continue-on-error: true
7778
- name: Publish to npm with provenance
7879
env:
79-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
80-
run: |
81-
cd dist/js
82-
npm publish --provenance --access public --tag latest
80+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
81+
NPM_CONFIG_PROVENANCE: true
82+
run: npx -p publib@latest publib-npm
8383
- name: Extract Version
8484
id: extract-version
8585
if: ${{ failure() }}

0 commit comments

Comments
 (0)