Skip to content

Commit dd7b837

Browse files
committed
caching
1 parent 27387af commit dd7b837

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

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

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,23 @@ jobs:
2828
- name: Checkout Repo
2929
uses: actions/checkout@v4
3030
- name: Set up Node (20)
31-
uses: actions/setup-node@v3
31+
uses: actions/setup-node@v4
3232
with:
3333
node-version: 20.x
34+
cache: 'npm'
35+
cache-dependency-path: yarn.lock
36+
- name: Restore cached node_modules
37+
uses: actions/cache@v4
38+
id: node_modules
39+
with:
40+
path: "./node_modules"
41+
key: node_modules-${{ runner.arch }}-${{ runner.os }}-${{ hashFiles('yarn.lock') }}
3442
- name: Write Project Config
3543
env:
3644
PROJECT_CONFIG: ${{ secrets.PROJECT_CONFIG }}
3745
run: echo "export const firebaseConfig = $PROJECT_CONFIG;" > src/lib/app_tests/firebase.ts
3846
- name: Yarn install
39-
run: yarn
47+
run: yarn --frozen-lockfile
4048
- name: Yarn build
4149
run: yarn build
4250
- name: Install Playwright browsers

0 commit comments

Comments
 (0)