diff --git a/.github/workflows/continuous-integration-javascript.yml b/.github/workflows/continuous-integration-javascript.yml index 7846905355..9f001f2593 100644 --- a/.github/workflows/continuous-integration-javascript.yml +++ b/.github/workflows/continuous-integration-javascript.yml @@ -29,7 +29,19 @@ jobs: uses: actions/setup-node@v3.4.1 with: node-version: ${{ matrix.node-version }} - cache: 'yarn' + + - name: Get Yarn cache directory path + id: yarn-cache-dir-path + run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + + # https://github.com/actions/cache + - name: Restore Yarn cache + uses: actions/cache@v3.0.5 + with: + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} + key: yarn-cache-folder-${{ hashFiles('**/yarn.lock', '.yarnrc.yml') }} + restore-keys: | + yarn-cache-folder- - name: Install Yarn dependencies run: yarn install --immutable