@@ -12,19 +12,16 @@ permissions:
1212
1313concurrency :
1414 group : " pages"
15- cancel-in-progress : false
15+ cancel-in-progress : true
1616
1717jobs :
1818 build :
19- name : Build (${{ matrix.os }})
20- runs-on : ${{ matrix.os }}
21- strategy :
22- matrix :
23- os : [ubuntu-latest, windows-latest, macos-latest]
19+ name : Build
20+ runs-on : ubuntu-latest
2421
2522 steps :
2623 - name : Checkout
27- uses : actions/checkout@v6
24+ uses : actions/checkout@v4
2825
2926 - uses : pnpm/action-setup@v4
3027 name : Install pnpm
@@ -33,31 +30,22 @@ jobs:
3330 run_install : false
3431
3532 - name : Install Node.js
36- uses : actions/setup-node@v6
33+ uses : actions/setup-node@v4
3734 with :
3835 node-version : " 22"
3936 cache : " pnpm"
4037
41- - name : Get pnpm store directory
42- id : pnpm-cache
43- shell : bash
44- run : |
45- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
46-
47- - uses : actions/cache@v5
48- name : Setup pnpm cache
49- with :
50- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
51- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
52- restore-keys : |
53- ${{ runner.os }}-pnpm-store-
54-
5538 - name : Install dependencies
5639 run : pnpm install --frozen-lockfile
5740
5841 - name : Build
5942 run : pnpm build
6043
44+ - name : Upload artifact
45+ uses : actions/upload-pages-artifact@v3
46+ with :
47+ path : " ./dist"
48+
6149 deploy :
6250 name : Deploy to GitHub Pages
6351 needs : build
6654 url : ${{ steps.deployment.outputs.page_url }}
6755 runs-on : ubuntu-latest
6856 steps :
69- - name : Checkout
70- uses : actions/checkout@v6
71-
72- - uses : pnpm/action-setup@v4
73- name : Install pnpm
74- id : pnpm-install
75- with :
76- run_install : false
77-
78- - name : Install Node.js
79- uses : actions/setup-node@v6
80- with :
81- node-version : " 22"
82- cache : " pnpm"
83-
84- - name : Get pnpm store directory
85- id : pnpm-cache
86- shell : bash
87- run : |
88- echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
89-
90- - uses : actions/cache@v5
91- name : Setup pnpm cache
92- with :
93- path : ${{ steps.pnpm-cache.outputs.STORE_PATH }}
94- key : ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
95- restore-keys : |
96- ${{ runner.os }}-pnpm-store-
97-
98- - name : Install dependencies
99- run : pnpm install --frozen-lockfile
100-
101- - name : Build
102- run : pnpm build
103-
104- - name : Upload artifact
105- uses : actions/upload-pages-artifact@v3
106- with :
107- path : " ./dist"
108-
10957 - name : Deploy to GitHub Pages
11058 id : deployment
11159 uses : actions/deploy-pages@v4
0 commit comments