Skip to content

Commit

Permalink
fix: add nodejs cache
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioRibera committed Dec 23, 2024
1 parent dcda683 commit 8e896a7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,21 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

- name: NodeJS Cache
uses: actions/cache@v4
with:
path: ~/.npm
key: ${{ runner.OS }}-npm-cache-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache-
- name: Install Deps
run: npm install

- name: Build
run: npm run build --preset=cloudflare_pages

- uses: actions/upload-artifact@v4
with:
name: ${{env.PROJECT_NAME}}-dist
path: ./dist/

- name: Deploy
uses: cloudflare/wrangler-action@v3
# env:
Expand Down

0 comments on commit 8e896a7

Please sign in to comment.