Skip to content

Commit 584d306

Browse files
committed
chore: update release workflow to use actions/setup-node and add npm publish arguments
1 parent aa970c2 commit 584d306

2 files changed

Lines changed: 6 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -25,22 +25,18 @@ jobs:
2525
with:
2626
fetch-depth: 0
2727
token: ${{ secrets.GITHUB_TOKEN }}
28-
2928
- uses: oven-sh/setup-bun@v2
30-
29+
- uses: actions/setup-node@v4
30+
with:
31+
node-version: 20
32+
- run: npm install -g npm@latest
3133
- run: bun install --frozen-lockfile
32-
3334
- name: Configure Git
3435
run: |
3536
git config user.name "${GITHUB_ACTOR}"
3637
git config user.email "${GITHUB_ACTOR}@users.noreply.github.com"
37-
38-
- name: Configure npm auth
39-
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
40-
4138
- name: Release
4239
working-directory: package
4340
run: bun run release --ci --increment ${{ inputs.version }}
4441
env:
4542
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

package/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,8 @@
8383
"tagName": "v${version}"
8484
},
8585
"npm": {
86-
"publish": true
86+
"publish": true,
87+
"publishArgs": ["--provenance --access public"]
8788
},
8889
"github": {
8990
"release": true

0 commit comments

Comments
 (0)