From d457f03e4d46c2c309fb02a4edbe6d7f6443650d Mon Sep 17 00:00:00 2001 From: Matt McKay Date: Fri, 5 Jun 2026 14:53:06 +1000 Subject: [PATCH] fix: bump GitHub Actions to Node 24-compatible versions GitHub forces Node 24 as the default runner runtime from 2026-06-02 (Node 20 fully removed 2026-09-16). The action and workflows still pinned Node-20 JS actions, which now emit deprecation warnings and risk breakage. Pins each action to its latest floating major tag that runs on Node 24 (verified against each action's action.yml `runs.using`): - actions/checkout@v4 -> v5 - astral-sh/setup-uv@v3 -> v7 (no floating v8 tag published; v7 is node24) - actions/setup-node@v4 -> v6 (+ build Node 20 -> 22 LTS) - actions/upload-pages-artifact@v3 -> v5 (composite) - actions/deploy-pages@v4 -> v5 Resolves #16. Co-Authored-By: Claude Opus 4.8 --- .github/workflows/ci.yml | 8 ++++---- .github/workflows/docs.yml | 10 +++++----- CHANGELOG.md | 4 ++++ action.yml | 4 ++-- 4 files changed, 15 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3a1ce9c..7b5d8d4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -19,10 +19,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v7 with: enable-cache: true @@ -40,10 +40,10 @@ jobs: steps: - name: Checkout code - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Install uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v7 with: enable-cache: true diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 1b82274..489024f 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -21,12 +21,12 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v4 + - uses: actions/checkout@v5 - name: Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v6 with: - node-version: '20' + node-version: '22' - name: Build with MyST run: npx -y mystmd build --html @@ -35,7 +35,7 @@ jobs: BASE_URL: /action-style-guide - name: Upload artifact - uses: actions/upload-pages-artifact@v3 + uses: actions/upload-pages-artifact@v5 with: path: docs/_build/html @@ -48,4 +48,4 @@ jobs: steps: - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@v5 diff --git a/CHANGELOG.md b/CHANGELOG.md index 6b133d0..51c28a8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Changed + +- **Bumped GitHub Actions to Node 24-compatible versions** — GitHub forces Node 24 as the default runner runtime from 2026-06-02 (Node 20 fully removed 2026-09-16). Updated `actions/checkout@v4→v5` and `astral-sh/setup-uv@v3→v7` in `action.yml` and CI; the docs workflow now uses `actions/setup-node@v4→v6` (Node 22), `actions/upload-pages-artifact@v3→v5`, and `actions/deploy-pages@v4→v5`. Resolves #16. + ## [0.7.2] - 2026-02-16 ### Fixed diff --git a/action.yml b/action.yml index 2710f64..9b3148c 100644 --- a/action.yml +++ b/action.yml @@ -66,13 +66,13 @@ runs: using: 'composite' steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: token: ${{ inputs.github-token }} fetch-depth: 0 - name: Install uv - uses: astral-sh/setup-uv@v3 + uses: astral-sh/setup-uv@v7 with: enable-cache: true # By default setup-uv searches **/uv.lock in the consumer repo, which