Skip to content

Commit 64f5728

Browse files
author
jarvisjiang
committed
ci: improve GitHub Actions workflow configurations
- Add pnpm installation steps to JSR publish workflow - Add OIDC permissions for NPM publish workflow - Remove deprecated NODE_AUTH_TOKEN environment variables
1 parent e7f1c47 commit 64f5728

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

.github/workflows/jsr-publish.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,4 +40,6 @@ jobs:
4040
uses: actions/setup-node@v6
4141
with:
4242
node-version: latest
43+
- run: npm install pnpm -g
44+
- run: pnpm install
4345
- run: npx jsr publish --config jsr.json

.github/workflows/npm-publish-github-packages.yml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,3 @@ jobs:
4545
- run: npm install pnpm -g
4646
- run: pnpm install
4747
- run: npm publish
48-
env:
49-
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}

.github/workflows/npm-publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,11 @@ jobs:
2727
publish-npm:
2828
needs: test
2929
runs-on: ubuntu-latest
30+
31+
permissions:
32+
contents: read
33+
id-token: write
34+
3035
steps:
3136
- name: Checkout
3237
uses: actions/checkout@main
@@ -39,5 +44,3 @@ jobs:
3944
- run: npm install pnpm -g
4045
- run: pnpm install
4146
- run: npm publish
42-
env:
43-
NODE_AUTH_TOKEN: ${{secrets.npm_token}}

0 commit comments

Comments
 (0)