Skip to content

Commit de66adf

Browse files
ci: NPM trusted publishing (#112)
1 parent 073664e commit de66adf

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ jobs:
88
runs-on: ubuntu-latest
99
permissions:
1010
contents: write
11+
id-token: write
1112

1213
steps:
1314
- uses: actions/checkout@v4
@@ -28,6 +29,11 @@ jobs:
2829
yarn install
2930
yarn build
3031
32+
- name: Install latest npm CLI
33+
run: |
34+
npm install -g npm@latest
35+
npm --version
36+
3137
- name: Install release-it globally
3238
run: |
3339
@@ -38,9 +44,6 @@ jobs:
3844
git config user.name "${GITHUB_ACTOR}"
3945
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
4046
41-
- name: npm config
42-
run: npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
43-
4447
- name: Bump version
4548
run: npx release-it --increment
4649
env:

.release-it.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@
1212
"releaseName": "${version}"
1313
},
1414
"npm": {
15-
"publish": true
15+
"publish": true,
16+
"skipChecks": true
1617
},
1718
"plugins": {
1819
"@release-it/conventional-changelog": {

0 commit comments

Comments
 (0)