Skip to content

Commit 6eae4eb

Browse files
HerrCai0907Cai Congcong
authored andcommitted
fix release (#18)
update to OIDC
1 parent 5c9d6cf commit 6eae4eb

1 file changed

Lines changed: 10 additions & 6 deletions

File tree

.github/workflows/publish.yml

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

8+
permissions:
9+
id-token: write # Required for OIDC
10+
contents: read
11+
812
jobs:
913
publish:
1014
runs-on: ubuntu-latest
1115
steps:
12-
- uses: actions/checkout@v2
13-
- uses: actions/setup-node@v2
16+
- uses: actions/checkout@v4
17+
- uses: actions/setup-node@v4
1418
with:
15-
node-version: "22.x"
16-
- name: Install dependencies
17-
run: npm ci
18-
19+
node-version: "24"
20+
cache: "npm"
21+
registry-url: "https://registry.npmjs.org"
22+
- run: npm version $(echo "${GITHUB_REF}" | sed 's/refs\/tags\///') --git-tag-version false
1923
- run: npm publish

0 commit comments

Comments
 (0)