From c7b798ccf2f05aad8d07a8949a5f149196897c48 Mon Sep 17 00:00:00 2001 From: Austen Stone Date: Thu, 20 Aug 2026 10:34:24 -0700 Subject: [PATCH] ci: move actions off the deprecated Node 20 runtime Every action pin was old enough that the runner was already force-migrating it to Node 24 and warning on every run: Node.js 20 is deprecated. The following actions target Node.js 20 but are being forced to run on Node.js 24 checkout v4->v7, setup-node v4->v7, configure-pages v5->v6, upload-pages-artifact v3->v5, deploy-pages v4->v5. Two silent behaviour changes in these majors were checked against this repo rather than assumed: - setup-node v5 auto-caches when package.json has a packageManager field, on top of an explicit cache: input. This repo has no such field, so no package-manager-cache: false is needed. - upload-pages-artifact v4 stopped including dotfiles by default. A built dist/ has none, so include-hidden-files is not needed. upload-pages-artifact and deploy-pages are a matched pair and move together. No new permissions scopes are required. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3cf40db0-fafb-4793-92c6-3fe2b92d70bd --- .github/workflows/ci.yml | 4 ++-- .github/workflows/deploy.yml | 10 +++++----- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 96c4fff..a6f1943 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,9 +19,9 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: 22 cache: npm diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 5de105c..e75d705 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -19,14 +19,14 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v7 - - uses: actions/setup-node@v4 + - uses: actions/setup-node@v7 with: node-version: 22 cache: npm - - uses: actions/configure-pages@v5 + - uses: actions/configure-pages@v6 - name: Install dependencies run: npm ci @@ -45,7 +45,7 @@ jobs: env: BASE_PATH: /${{ github.event.repository.name }}/ - - uses: actions/upload-pages-artifact@v3 + - uses: actions/upload-pages-artifact@v5 with: path: dist @@ -58,4 +58,4 @@ jobs: url: ${{ steps.deployment.outputs.page_url }} steps: - id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5