From 128c68aed276e928cf9061f7101556e7661c312b Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 17 Oct 2025 15:15:37 +0200 Subject: [PATCH 1/4] chore: bump all actions in gha --- .github/workflows/ci.yml | 18 ++++++++---------- .github/workflows/publish.yml | 13 +++++-------- .github/workflows/sync.yml | 4 ++-- .github/workflows/update-nock-files.yml | 8 ++++---- 4 files changed, 19 insertions(+), 24 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index eaa3b4c28..3b94f6299 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -15,18 +15,17 @@ 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/* - 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 +64,18 @@ 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 - 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/publish.yml b/.github/workflows/publish.yml index 9c2cc6c4f..66caadf4d 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,17 @@ 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/* - 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')}} @@ -57,8 +56,6 @@ jobs: - name: Publish to the npm registry run: corepack yarn npm publish --provenance - env: - YARN_NPM_AUTH_TOKEN: ${{secrets.NPM_TOKEN}} - run: corepack yarn pack --out corepack.tgz - name: Add Corepack package archive to GitHub release diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 2108412bc..1ca7868da 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -14,10 +14,10 @@ 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/* diff --git a/.github/workflows/update-nock-files.yml b/.github/workflows/update-nock-files.yml index 86dfc1e62..4c47b7f91 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -43,12 +43,12 @@ 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/* @@ -57,7 +57,7 @@ jobs: run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT shell: bash - - 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 +101,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 From 1f19eb4f743807b340e9577c0ac52eea54edd25d Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 17 Oct 2025 15:53:48 +0200 Subject: [PATCH 2/4] fixup! chore: bump all actions in gha --- .github/workflows/ci.yml | 4 ++++ .github/workflows/publish.yml | 2 ++ .github/workflows/sync.yml | 2 ++ .github/workflows/update-nock-files.yml | 4 +++- 4 files changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3b94f6299..1a0ed08d2 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,6 +16,8 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + env: + SKIP_YARN_COREPACK_CHECK: 1 - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: @@ -65,6 +67,8 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: "Use Node.js ${{matrix.node}}.x" uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 66caadf4d..62d1a4654 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,6 +36,8 @@ jobs: id-token: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + env: + SKIP_YARN_COREPACK_CHECK: 1 - uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 with: diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 1ca7868da..1795c3c06 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -15,6 +15,8 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Install Node uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 diff --git a/.github/workflows/update-nock-files.yml b/.github/workflows/update-nock-files.yml index 4c47b7f91..bbd110310 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -46,6 +46,8 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }} + env: + SKIP_YARN_COREPACK_CHECK: 1 - name: Install Node uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5.0.0 @@ -54,7 +56,7 @@ jobs: - name: Get the Yarn cache directory path id: yarn-cache-dir-path - run: echo "dir=$(corepack yarn config get cacheFolder)" >> $GITHUB_OUTPUT + run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" shell: bash - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 From 4667352dda9fb3f4ad674e7c8eba46fc2e46d035 Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 17 Oct 2025 15:56:54 +0200 Subject: [PATCH 3/4] fixup! fixup! chore: bump all actions in gha --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/publish.yml | 4 ++-- .github/workflows/sync.yml | 4 ++-- .github/workflows/update-nock-files.yml | 4 ++-- 4 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 1a0ed08d2..2a29712ca 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -16,12 +16,12 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - env: - SKIP_YARN_COREPACK_CHECK: 1 - 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 @@ -67,13 +67,13 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - env: - SKIP_YARN_COREPACK_CHECK: 1 - name: "Use Node.js ${{matrix.node}}.x" 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 diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 62d1a4654..902a42502 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -36,12 +36,12 @@ jobs: id-token: write steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - env: - SKIP_YARN_COREPACK_CHECK: 1 - 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 diff --git a/.github/workflows/sync.yml b/.github/workflows/sync.yml index 1795c3c06..005afed17 100644 --- a/.github/workflows/sync.yml +++ b/.github/workflows/sync.yml @@ -15,13 +15,13 @@ jobs: steps: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 - env: - SKIP_YARN_COREPACK_CHECK: 1 - name: Install Node 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 bbd110310..00e5528d8 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -46,13 +46,13 @@ jobs: - uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 with: ref: ${{ fromJson(steps.pr_info.outputs.DATA).head_sha }} - env: - SKIP_YARN_COREPACK_CHECK: 1 - name: Install Node 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 From 97f61766128edc1cff4a38b264e5a8972087f9ec Mon Sep 17 00:00:00 2001 From: Antoine du Hamel Date: Fri, 17 Oct 2025 16:03:12 +0200 Subject: [PATCH 4/4] fixup! chore: bump all actions in gha --- .github/workflows/ci.yml | 1 + .github/workflows/update-nock-files.yml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 2a29712ca..40f9303a5 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,6 +78,7 @@ jobs: - name: Get the Yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" + shell: bash # Needs explicit bash for Windows-support - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: diff --git a/.github/workflows/update-nock-files.yml b/.github/workflows/update-nock-files.yml index 00e5528d8..0fe355755 100644 --- a/.github/workflows/update-nock-files.yml +++ b/.github/workflows/update-nock-files.yml @@ -57,7 +57,6 @@ jobs: - name: Get the Yarn cache directory path id: yarn-cache-dir-path run: echo "dir=$(corepack yarn config get cacheFolder)" >> "$GITHUB_OUTPUT" - shell: bash - uses: actions/cache@0057852bfaa89a56745cba8c7296529d2fc39830 # v4.3.0 with: