Skip to content

Commit bafb758

Browse files
authored
Modify publish.yml for permissions and Node.js version
Updated permissions and Node.js version in the workflow.
1 parent ba76fdd commit bafb758

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/publish.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
tags:
66
- v*
77

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
build:
1014
runs-on: ubuntu-latest
@@ -14,16 +18,14 @@ jobs:
1418
- uses: pnpm/action-setup@v4
1519
name: Install pnpm
1620
with:
17-
version: 9
21+
version: 10
1822
run_install: false
1923

2024
- name: Install Node.js
2125
uses: actions/setup-node@v4
2226
with:
23-
node-version: 22
27+
node-version: 25
2428
cache: 'pnpm'
2529
registry-url: 'https://registry.npmjs.org'
2630

2731
- run: pnpm i && pnpm publish --no-git-checks
28-
env:
29-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)