From 7b781a1d3c8a707241868007857323ba16a3fae2 Mon Sep 17 00:00:00 2001 From: Di Date: Sat, 18 Apr 2026 17:08:34 +1000 Subject: [PATCH] Upgrade to Chromatic v16, Node 24, Actions v5 --- .github/workflows/ci.yml | 8 +++++--- .github/workflows/visual-regression-testing.yml | 12 ++++++++---- README.md | 2 +- package.json | 4 ++-- yarn.lock | 10 +++++----- 5 files changed, 21 insertions(+), 15 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 6e2067d9..ca2c1023 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -12,15 +12,17 @@ jobs: runs-on: ubuntu-latest if: github.actor != 'dependabot[bot]' steps: + # https://github.com/actions/checkout - name: 🏗️ Check out repository code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: submodules: true + # https://github.com/actions/setup-node - name: 🏗️ Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: "22.14.0" + node-version: "24.14.1" cache: "yarn" - name: 🏗️ Install dependencies diff --git a/.github/workflows/visual-regression-testing.yml b/.github/workflows/visual-regression-testing.yml index a48be62c..9cbbf1fa 100644 --- a/.github/workflows/visual-regression-testing.yml +++ b/.github/workflows/visual-regression-testing.yml @@ -14,23 +14,27 @@ jobs: runs-on: ubuntu-latest if: github.actor != 'dependabot[bot]' steps: + # https://github.com/actions/checkout - name: 🏗️ Check out repository code - uses: actions/checkout@v4 + uses: actions/checkout@v5 with: submodules: true fetch-depth: 0 + # https://github.com/actions/setup-node - name: 🏗️ Setup Node.js - uses: actions/setup-node@v4 + uses: actions/setup-node@v5 with: - node-version: "22.14.0" + node-version: "24.14.1" cache: "yarn" - name: 🏗️ Install dependencies run: yarn install --immutable + # https://github.com/chromaui/action + # https://github.com/chromaui/chromatic-cli - name: ☑️ Build Chromatic - uses: chromaui/action@v12.2.0 + uses: chromaui/action@v16.2.0 with: projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} exitZeroOnChanges: ${{ github.ref == 'refs/heads/master' && true || false }} diff --git a/README.md b/README.md index d4528146..bd09112c 100644 --- a/README.md +++ b/README.md @@ -33,7 +33,7 @@ Typey Type avoids generic typing features, such as competing for speed and accur ### Requirements -Install [yarn](https://yarnpkg.com/lang/en/docs/install/). Note: the project is currently built with Node version 22. +Install [yarn](https://yarnpkg.com/lang/en/docs/install/). Note: the project is currently built with Node version 24. ### Installation diff --git a/package.json b/package.json index 3a81e291..abc74a24 100644 --- a/package.json +++ b/package.json @@ -127,7 +127,7 @@ "@vitest/coverage-v8": "4.1.4", "@vitest/eslint-plugin": "^1.6.13", "@vitest/ui": "4.1.4", - "chromatic": "^12.2.0", + "chromatic": "16.2.0", "esbuild": "0.27.4", "eslint": "9.39.4", "eslint-import-resolver-typescript": "^4.4.4", @@ -149,7 +149,7 @@ "vitest": "4.1.4" }, "engines": { - "node": ">=22.14.0" + "node": ">=24.14.1" }, "packageManager": "yarn@4.13.0" } diff --git a/yarn.lock b/yarn.lock index 79e4686a..8e3d5f33 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3964,9 +3964,9 @@ __metadata: languageName: node linkType: hard -"chromatic@npm:^12.2.0": - version: 12.2.0 - resolution: "chromatic@npm:12.2.0" +"chromatic@npm:16.2.0": + version: 16.2.0 + resolution: "chromatic@npm:16.2.0" peerDependencies: "@chromatic-com/cypress": ^0.*.* || ^1.0.0 "@chromatic-com/playwright": ^0.*.* || ^1.0.0 @@ -3979,7 +3979,7 @@ __metadata: chroma: dist/bin.js chromatic: dist/bin.js chromatic-cli: dist/bin.js - checksum: 10c0/c40c977c589fe03d788103281c3e000224049c65932f67293e9825faadccc654931f1b68ec442beb516d87449d00420d73e3984103b49faca42ead1c12867932 + checksum: 10c0/9de6ec3e405970f429f056906f16e5fd4c4340ab587fc24dd91a16df32a06b7ad614f60791e7cdfc46033f5e3a5f28037f8e90afba6372ce68975b5951e8daf0 languageName: node linkType: hard @@ -9270,7 +9270,7 @@ __metadata: "@vitest/coverage-v8": "npm:4.1.4" "@vitest/eslint-plugin": "npm:^1.6.13" "@vitest/ui": "npm:4.1.4" - chromatic: "npm:^12.2.0" + chromatic: "npm:16.2.0" clipboard: "npm:^1.7.1" d3-array: "npm:^3.1.1" d3-format: "npm:^3.1.0"