Skip to content

Commit e9f76ff

Browse files
committedAug 15, 2024··
chore: better ci
Signed-off-by: Neko Ayaka <neko@ayaka.moe>
1 parent b4e9e48 commit e9f76ff

File tree

1 file changed

+21
-4
lines changed

1 file changed

+21
-4
lines changed
 

‎.github/workflows/deploy.yaml

+21-4
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ concurrency:
1414
group: pages
1515
cancel-in-progress: false
1616

17+
env:
18+
STORE_PATH: ''
19+
1720
jobs:
1821
build:
1922
runs-on: ubuntu-latest
@@ -25,14 +28,28 @@ jobs:
2528
with:
2629
node-version: 'lts/*'
2730

28-
- name: Setup @antfu/ni
29-
run: npm i -g @antfu/ni
31+
- uses: pnpm/action-setup@v2
32+
with:
33+
run_install: false
34+
35+
- name: Obtain pnpm store directory
36+
shell: bash
37+
run: |
38+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
39+
40+
- name: Configure pnpm cache
41+
uses: actions/cache@v4
42+
with:
43+
path: ${{ env.STORE_PATH }}
44+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
45+
restore-keys: |
46+
${{ runner.os }}-pnpm-store-
3047
3148
- name: Install dependencies
32-
run: ni
49+
run: pnpm install --frozen-lockfile
3350

3451
- name: Build
35-
run: nr packages:build-base
52+
run: pnpm run packages:build-base
3653

3754
- name: Setup Pages
3855
uses: actions/configure-pages@v4

0 commit comments

Comments
 (0)
Please sign in to comment.