Skip to content

Commit 599d6e9

Browse files
committed
build command added to actions
1 parent c9330a0 commit 599d6e9

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/static.yml

+30
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,36 @@ jobs:
3131
steps:
3232
- name: Checkout
3333
uses: actions/checkout@v4
34+
- name: Install Node.js
35+
uses: actions/setup-node@v4
36+
with:
37+
node-version: 20
38+
39+
- uses: pnpm/action-setup@v3
40+
name: Install pnpm
41+
with:
42+
version: 8
43+
run_install: false
44+
45+
- name: Get pnpm store directory
46+
shell: bash
47+
run: |
48+
echo "STORE_PATH=$(pnpm store path --silent)" >> $GITHUB_ENV
49+
50+
- uses: actions/cache@v4
51+
name: Setup pnpm cache
52+
with:
53+
path: ${{ env.STORE_PATH }}
54+
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
55+
restore-keys: |
56+
${{ runner.os }}-pnpm-store-
57+
58+
- name: Install dependencies
59+
run: pnpm install
60+
61+
- name: Build
62+
run: pnpm build
63+
3464
- name: Setup Pages
3565
uses: actions/configure-pages@v5
3666
- name: Upload artifact

0 commit comments

Comments
 (0)