Skip to content

Commit

Permalink
Added next build cache
Browse files Browse the repository at this point in the history
  • Loading branch information
squaresmile authored Oct 23, 2024
1 parent fb707ea commit 7f49d34
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/build-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,12 +15,12 @@ jobs:

steps:
- name: Checkout code
uses: actions/checkout@v2
uses: actions/checkout@v4

- name: Set up Python
uses: actions/setup-python@v2
uses: actions/setup-python@v5
with:
python-version: "3.11.5"
python-version: "3.11"
cache: "pip"

- name: Install Python dependencies
Expand All @@ -31,9 +31,18 @@ jobs:
run: python generate-lookup.py

- name: Set up Node.js
uses: actions/setup-node@v2
uses: actions/setup-node@v4
with:
node-version: "18.18.0"
node-version: "18"

- name: Cache next build
uses: actions/cache@v4
with:
path: |
~/.npm
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
restore-keys: ${{ runner.os }}-nextjs-${{ hashFiles('**/package-lock.json') }}-

- name: Install npm dependencies
run: npm ci
Expand Down

0 comments on commit 7f49d34

Please sign in to comment.