diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c08869e2..fef3c3f2 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -14,13 +14,17 @@ jobs: - name: Check out Git repository uses: actions/checkout@v4 + - name: Get yarn cache directory path + id: yarn-cache-dir-path + run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT + - name: Cache node modules id: cache-npm - uses: actions/cache@v3 + uses: actions/cache@v4 env: cache-name: cache-node-modules with: - path: ./node-modules + path: ${{ steps.yarn-cache-dir-path.outputs.dir }} key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-build-${{ env.cache-name }}-