From 551bbf19806553d0afaf25dd92a56c83026e6dad Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Fri, 30 Oct 2026 14:02:02 -0600 Subject: [PATCH 1/2] ci: Update GitHub Actions to their latest major versions actions/checkout v4 -> v7, actions/setup-node v4 -> v7, actions/github-script v7 -> v9, pnpm/action-setup v4 -> v6. The v4 actions still target Node 20, which the runners deprecate with a warning on every job. Amp-Thread-ID: https://ampcode.com/threads/T-01a11326-478d-72cf-bbb7-587d16b378e9 Co-authored-by: Amp --- .github/workflows/algolia-index.yml | 6 +++--- .github/workflows/check-duplicates.yml | 2 +- .github/workflows/check-hostnames.yml | 2 +- .github/workflows/check-links.yml | 2 +- .github/workflows/check-redirects.yml | 2 +- .github/workflows/preview-links.yml | 2 +- .github/workflows/spellcheck-allow.yml | 4 ++-- .github/workflows/spellcheck.yml | 4 ++-- .github/workflows/vercel-build-log.yml | 2 +- 9 files changed, 13 insertions(+), 13 deletions(-) diff --git a/.github/workflows/algolia-index.yml b/.github/workflows/algolia-index.yml index 4992b70f8..0a20e66f1 100644 --- a/.github/workflows/algolia-index.yml +++ b/.github/workflows/algolia-index.yml @@ -33,14 +33,14 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out main - uses: actions/checkout@v4 + uses: actions/checkout@v7 - name: Set up pnpm - uses: pnpm/action-setup@v4 + uses: pnpm/action-setup@v6 # Node 24 is pre-cached on ubuntu-latest. - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version: 24 cache: pnpm diff --git a/.github/workflows/check-duplicates.yml b/.github/workflows/check-duplicates.yml index f2dabf7a6..d295a7a28 100644 --- a/.github/workflows/check-duplicates.yml +++ b/.github/workflows/check-duplicates.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out pull request head - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 diff --git a/.github/workflows/check-hostnames.yml b/.github/workflows/check-hostnames.yml index 636357604..be5de44ca 100644 --- a/.github/workflows/check-hostnames.yml +++ b/.github/workflows/check-hostnames.yml @@ -28,7 +28,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out pull request head - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 diff --git a/.github/workflows/check-links.yml b/.github/workflows/check-links.yml index 78629e1fc..51971c412 100644 --- a/.github/workflows/check-links.yml +++ b/.github/workflows/check-links.yml @@ -22,7 +22,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out pull request head - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 diff --git a/.github/workflows/check-redirects.yml b/.github/workflows/check-redirects.yml index ce4658f95..b915e0983 100644 --- a/.github/workflows/check-redirects.yml +++ b/.github/workflows/check-redirects.yml @@ -23,7 +23,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out pull request head - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 diff --git a/.github/workflows/preview-links.yml b/.github/workflows/preview-links.yml index 86ae4738a..ee0ef0aa8 100644 --- a/.github/workflows/preview-links.yml +++ b/.github/workflows/preview-links.yml @@ -50,7 +50,7 @@ jobs: || github.event.pull_request.head.repo.full_name == github.repository) runs-on: ubuntu-latest steps: - - uses: actions/github-script@v7 + - uses: actions/github-script@v9 env: PREVIEW_URL: ${{ github.event.client_payload.url || inputs.url }} COMMIT_SHA: ${{ github.event.client_payload.git.sha || inputs.sha }} diff --git a/.github/workflows/spellcheck-allow.yml b/.github/workflows/spellcheck-allow.yml index 717f1e002..bc0134680 100644 --- a/.github/workflows/spellcheck-allow.yml +++ b/.github/workflows/spellcheck-allow.yml @@ -46,14 +46,14 @@ jobs: RUN_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} steps: - name: Check out the pull request head - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: refs/pull/${{ env.PR_NUMBER }}/head # Node 24 is pre-cached on ubuntu-latest, avoiding the download # incurred by node-version: latest. - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version: 24 diff --git a/.github/workflows/spellcheck.yml b/.github/workflows/spellcheck.yml index 51f98bae8..328c3f2a8 100644 --- a/.github/workflows/spellcheck.yml +++ b/.github/workflows/spellcheck.yml @@ -20,7 +20,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out pull request head - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: ref: ${{ github.event.pull_request.head.sha }} fetch-depth: 0 @@ -28,7 +28,7 @@ jobs: # Node 24 is pre-cached on ubuntu-latest, avoiding the download # incurred by node-version: latest. - name: Set up Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v7 with: node-version: 24 diff --git a/.github/workflows/vercel-build-log.yml b/.github/workflows/vercel-build-log.yml index 49d66b2a4..60f246d68 100644 --- a/.github/workflows/vercel-build-log.yml +++ b/.github/workflows/vercel-build-log.yml @@ -56,7 +56,7 @@ jobs: runs-on: ubuntu-latest steps: - name: Check out dev/vercel-build-log.mjs - uses: actions/checkout@v4 + uses: actions/checkout@v7 with: sparse-checkout: dev/vercel-build-log.mjs sparse-checkout-cone-mode: false From 5c3bdb2e8ab30b80681c00183a4c546ba010d8ef Mon Sep 17 00:00:00 2001 From: Marc LeBlanc <7050295+marcleblanc2@users.noreply.github.com> Date: Fri, 30 Oct 2026 15:43:57 -0600 Subject: [PATCH 2/2] deps: Drop redundant sharp, move @types/* and typescript to devDependencies next lists sharp as its own optional dependency, so the devDependency only duplicated it. The type packages and typescript are build-time only. Amp-Thread-ID: https://ampcode.com/threads/T-01a11326-478d-72cf-bbb7-587d16b378e9 Co-authored-by: Amp --- package.json | 9 ++++----- pnpm-lock.yaml | 34 +++++++++++++++++----------------- 2 files changed, 21 insertions(+), 22 deletions(-) diff --git a/package.json b/package.json index e1e34dc62..a2498f983 100644 --- a/package.json +++ b/package.json @@ -37,9 +37,6 @@ "@radix-ui/react-select": "^2.0.0", "@radix-ui/react-slot": "^1.0.2", "@tailwindcss/typography": "^0.5.10", - "@types/node": "24.13.4", - "@types/react": "19.3.0", - "@types/react-dom": "19.3.0", "algoliasearch": "^4.22.1", "autoprefixer": "^10.4.16", "class-variance-authority": "^0.7.0", @@ -62,16 +59,18 @@ "tailwind-merge": "^2.3.0", "tailwindcss": "^3.4.0", "tailwindcss-animate": "^1.0.7", - "typescript": "5.3.3", "unist-util-visit": "^5.0.0" }, "devDependencies": { + "@types/node": "24.13.4", + "@types/react": "19.3.0", + "@types/react-dom": "19.3.0", "esbuild": "^0.25.0", "eslint": "^9.39.5", "eslint-config-next": "16.4.3", "glob": "^11.0.3", "prettier": "^3.1.1", "prettier-plugin-tailwindcss": "^0.5.9", - "sharp": "^0.35.5" + "typescript": "5.3.3" } } diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index a16c86e5e..11ce6b33b 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -36,15 +36,6 @@ importers: '@tailwindcss/typography': specifier: ^0.5.10 version: 0.5.19(tailwindcss@3.4.19(yaml@2.9.0)) - '@types/node': - specifier: 24.13.4 - version: 24.13.4 - '@types/react': - specifier: 19.3.0 - version: 19.3.0 - '@types/react-dom': - specifier: 19.3.0 - version: 19.3.0(@types/react@19.3.0) algoliasearch: specifier: ^4.22.1 version: 4.25.3 @@ -111,13 +102,19 @@ importers: tailwindcss-animate: specifier: ^1.0.7 version: 1.0.7(tailwindcss@3.4.19(yaml@2.9.0)) - typescript: - specifier: 5.3.3 - version: 5.3.3 unist-util-visit: specifier: ^5.0.0 version: 5.1.0 devDependencies: + '@types/node': + specifier: 24.13.4 + version: 24.13.4 + '@types/react': + specifier: 19.3.0 + version: 19.3.0 + '@types/react-dom': + specifier: 19.3.0 + version: 19.3.0(@types/react@19.3.0) esbuild: specifier: ^0.25.0 version: 0.25.12 @@ -136,9 +133,9 @@ importers: prettier-plugin-tailwindcss: specifier: ^0.5.9 version: 0.5.14(prettier@3.8.1) - sharp: - specifier: ^0.35.5 - version: 0.35.5(@types/node@24.13.4) + typescript: + specifier: 5.3.3 + version: 5.3.3 packages: @@ -4880,7 +4877,8 @@ snapshots: '@iconify/types': 2.0.0 mlly: 1.8.0 - '@img/colour@1.1.0': {} + '@img/colour@1.1.0': + optional: true '@img/sharp-darwin-arm64@0.35.5': optionalDependencies: @@ -6573,7 +6571,8 @@ snapshots: dequal@2.0.3: {} - detect-libc@2.1.2: {} + detect-libc@2.1.2: + optional: true detect-node-es@1.1.0: {} @@ -8767,6 +8766,7 @@ snapshots: '@img/sharp-win32-ia32': 0.35.5 '@img/sharp-win32-x64': 0.35.5 '@types/node': 24.13.4 + optional: true shebang-command@2.0.0: dependencies: