Skip to content

Commit d450004

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

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,19 @@ jobs:
2727
steps:
2828
- name: Checkout
2929
uses: actions/checkout@v4
30+
- name: Cache Primes
31+
id: cache-primes
32+
uses: actions/cache@v4
33+
with:
34+
path: ${{ env.PROJECT_NAME }}
35+
key: ${{ runner.os }}-${{ env.PROJECT_NAME }}
36+
3037
- name: Install Deps
3138
run: npm install
3239

3340
- name: Build
3441
run: npm run build --preset=cloudflare_pages
3542

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

0 commit comments

Comments
 (0)