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 05cc61b
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,16 +27,20 @@ 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/
run: npm run build

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

0 comments on commit 05cc61b

Please sign in to comment.