Skip to content

Commit 9694f45

Browse files
committed
yarn build cache
1 parent dd7b837 commit 9694f45

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/nightly-js-sdk.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,17 @@ jobs:
4545
run: echo "export const firebaseConfig = $PROJECT_CONFIG;" > src/lib/app_tests/firebase.ts
4646
- name: Yarn install
4747
run: yarn --frozen-lockfile
48+
- name: Restore yarn build cache
49+
uses: actions/cache@v4
50+
with:
51+
path: |
52+
~/.npm
53+
${{ github.workspace }}/.next/cache
54+
# Generate a new cache whenever packages or source files change.
55+
key: ${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/*.js', '**/*.jsx', '**/*.ts', '**/*.tsx') }}
56+
# If source files changed but packages didn't, rebuild from a prior cache.
57+
restore-keys: |
58+
${{ runner.os }}-nextjs-${{ hashFiles('yarn.lock') }}-
4859
- name: Yarn build
4960
run: yarn build
5061
- name: Install Playwright browsers

0 commit comments

Comments
 (0)