Skip to content

Commit b798782

Browse files
committed
chore: update deploy job
1 parent 822bb27 commit b798782

File tree

1 file changed

+26
-0
lines changed

1 file changed

+26
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,32 @@ jobs:
2222
steps:
2323
- name: Checkout your repository using git
2424
uses: actions/checkout@v3
25+
26+
- uses: pnpm/action-setup@v3
27+
name: Install pnpm
28+
with:
29+
version: 8
30+
run_install: false
31+
32+
- name: Get pnpm store directory
33+
shell: bash
34+
run: |
35+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
36+
37+
- uses: actions/cache@v3
38+
name: Setup pnpm cache
39+
with:
40+
path: ${{ env.STORE_PATH }}
41+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
42+
restore-keys: |
43+
${{ runner.os }}-pnpm-store-
44+
45+
- name: Install dependencies
46+
run: pnpm install --no-frozen-lockfile
47+
48+
- name: Build packages
49+
run: pnpm build
50+
2551
- name: Install, build, and upload your site
2652
uses: withastro/action@v1
2753
with:

0 commit comments

Comments
 (0)