diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eaa3b4c28..40f9303a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,18 +15,19 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: lts/* + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Get the Yarn cache directory path id: yarn-cache-dir-path - run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - shell: bash + run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - - uses: actions/cache@v4 + - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ${{steps.yarn-cache-dir-path.outputs.dir}} key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}} @@ -65,19 +66,21 @@ jobs: runs-on: ${{matrix.platform}} steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: "Use Node.js ${{matrix.node}}.x" - uses: actions/setup-node@v4 + uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: ${{matrix.node}}.x + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Get the Yarn cache directory path id: yarn-cache-dir-path - run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - shell: bash + run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" + shell: bash # Needs explicit bash for Windows-support - - uses: actions/cache@v4 + - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ${{steps.yarn-cache-dir-path.outputs.dir}} key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}} diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 3f660133d..902a42502 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -20,7 +20,7 @@ jobs: release_created: ${{ steps.release.outputs.release_created }} release_tag: ${{ steps.release.outputs.tag_name }} steps: - - uses: googleapis/release-please-action@v3 + - uses: googleapis/release-please-action@db8f2c60ee802b3748b512940dde88eabd7b7e01 # v3.7.13 id: release with: release-type: node @@ -35,18 +35,19 @@ jobs: contents: write id-token: write steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: lts/* + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Get the Yarn cache directory path id: yarn-cache-dir-path - run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - shell: bash + run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - - uses: actions/cache@v4 + - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ${{steps.yarn-cache-dir-path.outputs.dir}} key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}} diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 2108412bc..005afed17 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -14,12 +14,14 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - name: Install Node - uses: actions/setup-node@v4 + uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: lts/* + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: "Update the package manager versions" run: | diff --git a/.github/workflows/update-nock-files.yml b/.github/workflows/update-nock-files.yml index 86dfc1e62..0fe355755 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -43,21 +43,22 @@ jobs: ACTUAL: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }} EXPECTED: ${{ inputs.head_sha }} - - uses: actions/checkout@v4 + - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }} - name: Install Node - uses: actions/setup-node@v4 + uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: node-version: lts/* + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Get the Yarn cache directory path id: yarn-cache-dir-path - run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT - shell: bash + run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - - uses: actions/cache@v4 + - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: path: ${{steps.yarn-cache-dir-path.outputs.dir}} key: ${{runner.os}}-yarn-${{hashFiles('**/yarn.lock')}} @@ -101,7 +102,7 @@ jobs: REMOTE_REF: ${{ fromJson(steps.pr_info.outputs.DATA).head_ref }} - name: Upload `tests/nocks.db` in case of failure - uses: actions/upload-artifact@v4 + uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2 if: ${{ failure() && steps.contains-changes.outputs.result == 'yes' }} with: name: nock