Files
actual/.github/actions/setup/action.yml
Jed Fox 15bc3c45a0 Partition GitHub Actions cache based on Node version (#1118)
This should fix the test failures on `master` — currently tests are
failing because the cache was created with an old version of Node.
2023-06-11 13:37:20 -04:00

20 lines
469 B
YAML

name: Setup
runs:
using: composite
steps:
- name: Install node
uses: actions/setup-node@v3
with:
node-version: 18.16.0
- name: Cache
uses: actions/cache@v3
id: cache
with:
path: '**/node_modules'
key: yarn-v1-${{ runner.os }}-${{ hashFiles('.nvmrc') }}-${{ hashFiles('**/yarn.lock') }}
- name: Install
run: yarn --immutable
shell: bash
if: steps.cache.outputs.cache-hit != 'true'