Fix yarn cache in ci

This commit is contained in:
Zoe Roux 2024-01-10 13:22:04 +01:00
parent ff154b03f3
commit c5c527ec10
3 changed files with 7 additions and 11 deletions

View File

@ -25,16 +25,12 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: Find yarn cache
id: yarn-cache-path
run: echo "::set-output name=dir::$(yarn cache dir)"
- name: Restore cache
uses: actions/cache@v2
- name: Setup Node
uses: actions/setup-node@v2
with:
path: ${{ steps.yarn-cache-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: ${{ runner.os }}-yarn-
node-version: 18.x
cache: yarn
cache-dependency-path: front/yarn.lock
- name: Install dependencies
run: yarn install --immutable

View File

@ -25,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 18.x
cache: yarn
cache-dependency-path: front/yarn.lock

View File

@ -25,7 +25,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 18.x
cache: yarn
cache-dependency-path: front/yarn.lock