Skip to content

Commit 75b7e6e

Browse files
committed
Use npm publish --provenance
1 parent 11ad499 commit 75b7e6e

2 files changed

Lines changed: 2 additions & 4 deletions

File tree

.github/workflows/release.yml

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,11 @@ jobs:
2020
- name: Install Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: '16'
23+
node-version-file: '.nvmrc'
2424
registry-url: 'https://registry.npmjs.org'
2525
cache: 'npm'
2626
- name: Set up release environment
2727
run: |
2828
echo RELEASE_VERSION=${{ github.event.inputs.release-version }} >> $GITHUB_ENV
2929
- name: Build, tag, and publish npm package
30-
env:
31-
NODE_AUTH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3230
run: ./npm/release.sh

npm/release.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ git config --local user.email "$RELEASE_GIT_EMAIL"
3939
git tag -m "version $RELEASE_VERSION" v$RELEASE_VERSION
4040
git push origin $(git describe --tags --exact-match)
4141
npm whoami
42-
npm publish --access public --tag $RELEASE_NPM_TAG
42+
npm publish --provenance --access public --tag $RELEASE_NPM_TAG
4343
git push origin $RELEASE_BRANCH
4444
)
4545

0 commit comments

Comments
 (0)