From 78f77dac7559d530422215f4e3a21f1c0e996df6 Mon Sep 17 00:00:00 2001 From: Alex Skene <510285+skenaja@users.noreply.github.com> Date: Fri, 21 Aug 2026 14:37:59 +0100 Subject: [PATCH 1/2] ci: bump actions to node 24 versions github has deprecated node 20 which is what the current actions run on --- .github/workflows/deploy-production.yml | 8 ++++---- .github/workflows/externalLinks.yml | 6 +++--- .github/workflows/playwright.yml | 6 +++--- .github/workflows/pr-tests.yml | 8 ++++---- 4 files changed, 14 insertions(+), 14 deletions(-) diff --git a/.github/workflows/deploy-production.yml b/.github/workflows/deploy-production.yml index ed313c7c..1c9e104d 100644 --- a/.github/workflows/deploy-production.yml +++ b/.github/workflows/deploy-production.yml @@ -9,8 +9,8 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: node-version: 20 - run: npm ci @@ -18,7 +18,7 @@ jobs: env: THIRDWEB_CLIENT_ID: ${{ secrets.THIRDWEB_CLIENT_ID }} - name: Upload GitHub Pages artifact - uses: actions/upload-pages-artifact@v3.0.0 + uses: actions/upload-pages-artifact@v5 with: path: build @@ -34,4 +34,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 # or specific "vX.X.X" version tag for this action + uses: actions/deploy-pages@v5 # or specific "vX.X.X" version tag for this action diff --git a/.github/workflows/externalLinks.yml b/.github/workflows/externalLinks.yml index 23528ed0..bbf088b6 100644 --- a/.github/workflows/externalLinks.yml +++ b/.github/workflows/externalLinks.yml @@ -11,15 +11,15 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: node-version: lts/* - name: Install dependencies run: npm ci - name: Run external link check run: npm run externalLinks - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 if: ${{ !cancelled() }} with: name: externalLinks diff --git a/.github/workflows/playwright.yml b/.github/workflows/playwright.yml index 04ee5e11..dcc52f7d 100644 --- a/.github/workflows/playwright.yml +++ b/.github/workflows/playwright.yml @@ -11,8 +11,8 @@ jobs: timeout-minutes: 60 runs-on: ubuntu-latest steps: - - uses: actions/checkout@v5 - - uses: actions/setup-node@v5 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: node-version: lts/* - name: Install dependencies @@ -21,7 +21,7 @@ jobs: run: npx playwright install --with-deps - name: Run Playwright tests run: npx playwright test - - uses: actions/upload-artifact@v4 + - uses: actions/upload-artifact@v7 if: ${{ !cancelled() }} with: name: playwright-report diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 2836f909..28461dec 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -17,7 +17,7 @@ jobs: outputs: files: ${{ steps.files.outputs.added_modified }} steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v7 - id: files uses: Ana06/get-changed-files@v1.2 with: @@ -30,8 +30,8 @@ jobs: if: ${{ needs.checkChangedFiles.outputs.files != '' }} continue-on-error: true steps: - - uses: actions/checkout@v2 - - uses: actions/setup-node@v1 + - uses: actions/checkout@v7 + - uses: actions/setup-node@v7 with: node-version: 22 @@ -66,7 +66,7 @@ jobs: run: echo $FAILED # Report tests on PR - - uses: dorny/test-reporter@v2 + - uses: dorny/test-reporter@v3 if: ${{ !cancelled() }} with: path: 'doclib/*.xml' From 2d306670195b96b00cbc958651ef2fb2bda50a53 Mon Sep 17 00:00:00 2001 From: Alex Skene <510285+skenaja@users.noreply.github.com> Date: Fri, 21 Aug 2026 14:45:15 +0100 Subject: [PATCH 2/2] ci: replace Ana06/get-changed-files with `gh api` equivalent --- .github/workflows/pr-tests.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/pr-tests.yml b/.github/workflows/pr-tests.yml index 28461dec..2bd28276 100644 --- a/.github/workflows/pr-tests.yml +++ b/.github/workflows/pr-tests.yml @@ -5,6 +5,7 @@ permissions: contents: read checks: write id-token: write + pull-requests: read on: pull_request: @@ -17,12 +18,20 @@ jobs: outputs: files: ${{ steps.files.outputs.added_modified }} steps: - - uses: actions/checkout@v7 + # Compute the added/modified .md/.mdx files via the GitHub API. This + # replaces a third-party action (Ana06/get-changed-files, node12/node20) + # with the pre-installed gh CLI, so there is no action Node runtime to + # deprecate. Output name kept as `added_modified` so the job output + # mapping and downstream --docFiles references are unchanged. - id: files - uses: Ana06/get-changed-files@v1.2 - with: - format: 'csv' - filter: '*.mdx?' + env: + GH_TOKEN: ${{ github.token }} + run: | + files=$(gh api --paginate \ + repos/${{ github.repository }}/pulls/${{ github.event.pull_request.number }}/files \ + --jq '.[] | select(.status == "added" or .status == "modified") | .filename' \ + | { grep -iE '\.mdx?$' || true; } | paste -sd, -) + echo "added_modified=$files" >> "$GITHUB_OUTPUT" tests: runs-on: ubuntu-latest