diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 3cbf5d8..05832cd 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -22,20 +22,7 @@ jobs: uses: actions/setup-node@v4 with: node-version: ${{ matrix.node-version }} - - - name: Get yarn cache directory path - # Docs: https://github.com/actions/cache/blob/master/examples.md#node---yarn - id: yarn-cache-dir-path - run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT - - - uses: actions/cache@v4 - # Docs: https://github.com/actions/cache/blob/master/examples.md#node---yarn - id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`) - with: - path: ${{ steps.yarn-cache-dir-path.outputs.dir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- + cache: yarn - run: yarn --frozen-lockfile --non-interactive --no-progress --check-files