# Use cache to share the output across different jobs
# No need to cache node_modules because they are all bundled
- - uses: actions/cache/save@v3
+ - uses: actions/cache/save@v4
id: cache
with:
path: outfile.cjs
with:
node-version: ${{ matrix.node-version }}
cache: 'pnpm'
- - uses: actions/cache/restore@v3
+ - uses: actions/cache/restore@v4
id: cache-restore
with:
path: outfile.cjs
- if: ${{ contains(matrix.flag-for-e2e, '--cypress') }}
name: Cache Cypress binaries
id: cache-cypress
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
# TODO: avoid snowballing by adding version
key: ${{ runner.os }}-cypress-bin
- if: ${{ contains(matrix.flag-for-e2e, '--playwright') }}
name: Cache Playwright's binary
- uses: actions/cache@v3
+ uses: actions/cache@v4
with:
# Playwright removes unused browsers automatically
# So does not need to add playwright version to key