diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 5a757548fa..47567ac44b 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -33,11 +33,13 @@ jobs: node-version: ${{ matrix.node-version }} - name: Get npm cache directory path + if: ${{ runner.os != 'Windows' }} id: npm-cache-dir-path shell: bash run: echo "dir=$(npm config get cache)" >> $GITHUB_OUTPUT - uses: actions/cache@v3 + if: ${{ runner.os != 'Windows' }} id: npm-cache # use this to check for `cache-hit` (`steps.npm-cache.outputs.cache-hit != 'true'`) with: path: ${{ steps.npm-cache-dir-path.outputs.dir }}