Skip to content

Commit 8e896a7

Browse files
committed
fix: add nodejs cache
1 parent dcda683 commit 8e896a7

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,21 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
31+
- name: NodeJS Cache
32+
uses: actions/cache@v4
33+
with:
34+
path: ~/.npm
35+
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
36+
restore-keys: |
37+
${{ runner.OS }}-npm-cache-
38+
3039
- name: Install Deps
3140
run: npm install
3241

3342
- name: Build
3443
run: npm run build --preset=cloudflare_pages
3544

36-
- uses: actions/upload-artifact@v4
37-
with:
38-
name: ${{env.PROJECT_NAME}}-dist
39-
path: ./dist/
40-
4145
- name: Deploy
4246
uses: cloudflare/wrangler-action@v3
4347
# env:

0 commit comments

Comments
 (0)