Skip to content

Commit

Permalink
Merge pull request #40 from eksqtr/development
Browse files Browse the repository at this point in the history
Attempting to implement nextjs cache on deployment pipeline
  • Loading branch information
eksqtr authored Aug 25, 2024
2 parents 4d744b2 + 2a73ffd commit 0536e1c
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,22 @@ jobs:
- name: Checkout source code
uses: actions/checkout@v3

- name: Set up cache for node_modules
uses: actions/cache@v4
with:
path: node_modules
key: ${{ runner.os }}-node-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Set up cache for .next
uses: actions/cache@v4
with:
path: .next/cache
key: ${{ runner.os }}-next-${{ hashFiles('package-lock.json') }}
restore-keys: |
${{ runner.os }}-next-
- name: Setting up NodeJS Environment
uses: actions/setup-node@v3
with:
Expand Down

0 comments on commit 0536e1c

Please sign in to comment.