Skip to content

Commit

Permalink
enable build cache and use nvmrc
Browse files Browse the repository at this point in the history
  • Loading branch information
jaredcat committed Sep 12, 2023
1 parent 119e984 commit 0c6b22c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ jobs:
- name: Set Node.js
uses: actions/setup-node@v3
with:
node-version: 18.x
node-version-file: '.nvmrc'
cache: 'yarn'

- name: Get yarn cache directory path
Expand All @@ -28,7 +28,9 @@ jobs:
- uses: actions/cache@v3
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
path: |
${{ steps.yarn-cache-dir-path.outputs.dir }}
${{ github.workspace }}/.next/cache
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
18

0 comments on commit 0c6b22c

Please sign in to comment.