Skip to content

Commit 5ed6a31

Browse files
committed
chore: setup trusted publisher for npm
1 parent aceb026 commit 5ed6a31

File tree

3 files changed

+6
-5
lines changed

3 files changed

+6
-5
lines changed

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,11 +49,11 @@ jobs:
4949
git config user.name "${GITHUB_ACTOR}"
5050
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
5151
52+
- name: Update npm
53+
run: npm install -g npm@latest
54+
5255
- name: Create release
5356
run: |
54-
npm config set //registry.npmjs.org/:_authToken $NPM_TOKEN
5557
yarn release-it --ci
5658
env:
5759
GITHUB_TOKEN: ${{ secrets.PERSONAL_ACCESS_TOKEN }}
58-
NPM_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}
59-
NPM_CONFIG_PROVENANCE: true

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v18
1+
lts/*

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@
7474
"tagName": "v${version}"
7575
},
7676
"npm": {
77-
"publish": true
77+
"publish": true,
78+
"skipChecks": true
7879
},
7980
"github": {
8081
"release": true

0 commit comments

Comments
 (0)