Skip to content
This repository was archived by the owner on Jan 30, 2026. It is now read-only.

Commit fd2a5d8

Browse files
committed
chore: update GitHub Actions workflows to use latest action versions and improve token management
1 parent a9ce117 commit fd2a5d8

3 files changed

Lines changed: 15 additions & 10 deletions

File tree

.github/workflows/pr-validation.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,15 @@ jobs:
1212
validate:
1313
runs-on: ubuntu-latest
1414
steps:
15-
- uses: actions/checkout@v4
15+
- uses: actions/checkout@v5
1616
with:
1717
fetch-depth: 0
1818

1919
- uses: pnpm/action-setup@v4
2020
with:
2121
version: 9
2222

23-
- uses: actions/setup-node@v4
23+
- uses: actions/setup-node@v5
2424
with:
2525
node-version: 22
2626
cache: "pnpm"

.github/workflows/promote-stable.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ jobs:
77
promote:
88
runs-on: ubuntu-latest
99
steps:
10-
- uses: actions/checkout@v4
10+
- uses: actions/checkout@v5
1111
with:
1212
fetch-depth: 0
1313

.github/workflows/release-package.yml

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,31 +15,36 @@ concurrency:
1515
jobs:
1616
release:
1717
runs-on: ubuntu-latest
18-
permissions:
19-
contents: write
20-
packages: write
2118
steps:
22-
- uses: actions/checkout@v4
19+
- name: Generate token
20+
id: generate_token
21+
uses: actions/create-github-app-token@v2
22+
with:
23+
app-id: ${{ secrets.APP_ID }}
24+
private-key: ${{ secrets.APP_PRIVATE_KEY }}
25+
26+
- uses: actions/checkout@v5
2327
with:
2428
fetch-depth: 0
25-
token: ${{ secrets.GITHUB_TOKEN }}
29+
token: ${{ steps.generate_token.outputs.token }}
2630

2731
- uses: pnpm/action-setup@v4
2832
with:
2933
version: 9
3034

31-
- uses: actions/setup-node@v4
35+
- uses: actions/setup-node@v5
3236
with:
3337
node-version: 22
3438
cache: "pnpm"
3539
registry-url: "https://registry.npmjs.org"
3640

3741
- run: pnpm install --frozen-lockfile
3842
- run: pnpm build
43+
- run: pnpm test
3944

4045
- name: Release
4146
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
47+
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
4348
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4449
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
4550
run: pnpm dlx semantic-release

0 commit comments

Comments
 (0)