File tree Expand file tree Collapse file tree 2 files changed +51
-14
lines changed
Expand file tree Collapse file tree 2 files changed +51
-14
lines changed Original file line number Diff line number Diff line change 1+ name : Test Pull Request
2+
3+ on :
4+ pull_request :
5+ types : [opened, reopened, synchronize]
6+
7+ jobs :
8+ deploy :
9+ runs-on : ubuntu-latest
10+ steps :
11+ # 拉取代码
12+ - name : Checkout
13+ uses : actions/checkout@v6
14+ with :
15+ fetch-depth : 1
16+ - name : Install Node.js
17+ uses : actions/setup-node@v6
18+ with :
19+ node-version : 24
20+ - name : Install pnpm
21+ uses : pnpm/action-setup@v4
22+ with :
23+ run_install : false
24+
25+ - name : Get pnpm store directory
26+ shell : bash
27+ run : echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
28+ - name : Setup pnpm cache
29+ uses : actions/cache@v5
30+ with :
31+ path : ${{ env.STORE_PATH }}
32+ key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
33+ restore-keys : |
34+ ${{ runner.os }}-pnpm-store-
35+
36+ - name : Install
37+ run : pnpm install --frozen-lockfile
38+
39+ - name : Build
40+ run : pnpm run build
Original file line number Diff line number Diff line change @@ -2,42 +2,39 @@ name: Test
22
33on :
44 push :
5- branches :
6- - " main"
7- pull_request :
8- types : [opened, reopened, synchronize]
5+ branches : ["main"]
96
107jobs :
118 deploy :
129 runs-on : ubuntu-latest
1310 steps :
1411 # 拉取代码
1512 - name : Checkout
16- uses : actions/checkout@v4
13+ uses : actions/checkout@v6
1714 with :
1815 fetch-depth : 1
1916 - name : Install Node.js
20- uses : actions/setup-node@v4
17+ uses : actions/setup-node@v6
2118 with :
22- node-version : 20
19+ node-version : 24
2320 - name : Install pnpm
2421 uses : pnpm/action-setup@v4
2522 with :
2623 run_install : false
2724
2825 - name : Get pnpm store directory
2926 shell : bash
30- run : |
31- echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
27+ run : echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
3228 - name : Setup pnpm cache
33- uses : actions/cache@v4
29+ uses : actions/cache@v5
3430 with :
3531 path : ${{ env.STORE_PATH }}
3632 key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
3733 restore-keys : |
3834 ${{ runner.os }}-pnpm-store-
39- - name : " Install"
40- run : " pnpm install --frozen-lockfile"
4135
42- - name : " Build"
43- run : " pnpm run build"
36+ - name : Install
37+ run : pnpm install --frozen-lockfile
38+
39+ - name : Build
40+ run : pnpm run build
You can’t perform that action at this time.
0 commit comments