1111
1212permissions :
1313 contents : write
14+ id-token : write
1415
1516jobs :
1617 check :
@@ -23,17 +24,21 @@ jobs:
2324 - name : Checkout
2425 uses : actions/checkout@v6
2526 with :
26- fetch-depth : 2
27+ fetch-depth : 0
28+ fetch-tags : true
29+ ref : ${{ github.ref }}
2730
28- - name : Setup Node
29- uses : actions/setup-node @v6
31+ - name : Install pnpm
32+ uses : pnpm/action-setup @v6
3033 with :
31- node- version : 24
34+ version : 10.33.0
3235
33- - name : Setup pnpm
34- uses : pnpm/action- setup@v4
36+ - name : Install Node
37+ uses : actions/ setup-node@v6
3538 with :
36- version : 10
39+ node-version : 24.14.1
40+ registry-url : https://registry.npmjs.org/
41+ package-manager-cache : false
3742
3843 - name : Detect Deps version change
3944 id : check
5156 fi
5257
5358 release :
54- name : Release NPM Package
59+ name : Release
5560 needs : check
5661 if : needs.check.outputs.changed == 'true'
5762 runs-on : ubuntu-latest
@@ -62,25 +67,27 @@ jobs:
6267 with :
6368 fetch-depth : 0
6469 fetch-tags : true
70+ ref : ${{ github.ref }}
6571
66- - name : Setup Node
67- uses : actions/setup-node @v6
72+ - name : Install pnpm
73+ uses : pnpm/action-setup @v6
6874 with :
69- node-version : 24
70- registry-url : ' https://registry.npmjs.org/'
75+ version : 10.33.0
7176
72- - name : Setup pnpm
73- uses : pnpm/action- setup@v4
77+ - name : Install Node
78+ uses : actions/ setup-node@v6
7479 with :
75- version : 10
80+ node-version : 24.14.1
81+ registry-url : https://registry.npmjs.org/
82+ package-manager-cache : false
7683
7784 - name : Set Git Identity
7885 run : |
7986 git config --global user.name "github-actions[bot]"
8087 git config --global user.email "github-actions[bot]@users.noreply.github.com"
8188
82- - name : Install dependencies
83- run : pnpm install
89+ - name : Install deps
90+ run : pnpm install --frozen-lockfile
8491
8592 - name : Sync vite version
8693 run : pnpm sync:vite
@@ -91,11 +98,11 @@ jobs:
9198 git commit -m "chore: sync vite version with vitepress" || echo "No changes"
9299 git push
93100
94- - name : Build project
101+ - name : Build
95102 run : pnpm build
96103
97- - name : Release with release-it
98- run : pnpm exec release-it --ci
104+ - name : Release
105+ run : pnpm exec release --ci
99106 env :
100107 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
101108 NODE_AUTH_TOKEN : ${{ secrets.NPM_TOKEN }}
0 commit comments