From 1a228aa7098174a847238e246483214df43b35b1 Mon Sep 17 00:00:00 2001 From: Bryan Clark Date: Wed, 14 Oct 2026 06:56:20 -0700 Subject: [PATCH] ci: read Node versions from mise configs --- .github/mise.node24.toml | 3 +++ .github/workflows/build.yml | 2 +- .github/workflows/lockfile.yml | 2 +- .github/workflows/nightly.yml | 2 +- CONTRIBUTING.md | 4 +++- mise.toml | 2 ++ 6 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 .github/mise.node24.toml create mode 100644 mise.toml diff --git a/.github/mise.node24.toml b/.github/mise.node24.toml new file mode 100644 index 0000000..41c674d --- /dev/null +++ b/.github/mise.node24.toml @@ -0,0 +1,3 @@ +# Lockfile checks use Node 24. +[tools] +node = "24" diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 8cbd515..62e4c95 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -21,7 +21,7 @@ jobs: - name: 🏗 Setup Node.js uses: actions/setup-node@v7 with: - node-version: "22" + node-version-file: mise.toml cache: "npm" - name: 📦 Install dependencies diff --git a/.github/workflows/lockfile.yml b/.github/workflows/lockfile.yml index dc2a5a8..515d65a 100644 --- a/.github/workflows/lockfile.yml +++ b/.github/workflows/lockfile.yml @@ -18,7 +18,7 @@ jobs: - uses: actions/checkout@v7 - uses: actions/setup-node@v7 with: - node-version: 24 + node-version-file: .github/mise.node24.toml - name: Check the lockfile regenerates from package.json run: | git ls-files --error-unmatch package-lock.json diff --git a/.github/workflows/nightly.yml b/.github/workflows/nightly.yml index 8c88930..3b38d78 100644 --- a/.github/workflows/nightly.yml +++ b/.github/workflows/nightly.yml @@ -42,7 +42,7 @@ jobs: if: steps.changes.outputs.skip != 'true' uses: actions/setup-node@v7 with: - node-version: "22" + node-version-file: mise.toml cache: "npm" - name: 🏗 Setup EAS diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index fd683e0..6fc0e94 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -25,9 +25,11 @@ This project is built with [Expo](https://expo.dev/), a framework and platform f ### Prerequisites -- Node.js 20+ +- Node.js 22 (declared in `mise.toml`) - Xcode 16+ +CI uses `actions/setup-node` with `node-version-file: mise.toml`. Lockfile checks read `.github/mise.node24.toml` to preserve their separate Node 24 requirement. + ### Setup ```sh diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..6a0493c --- /dev/null +++ b/mise.toml @@ -0,0 +1,2 @@ +[tools] +node = "22"