Skip to content

Commit c449135

Browse files
ThomasK33claude
andcommitted
ci: fix Node 22/24 matrix install under mise locked mode
mise-action force-adds --locked when mise.lock is present, but the lock only pins node 26.3.0 — so the 22/24 matrix cells failed with 'No lockfile URL found'. Set install: false plus a manual, non-locked 'mise install node pnpm' for the build matrix (MISE_LOCKFILE=false), keeping the lock authoritative for local dev and the un-overridden lint-workflows job. Change-Id: Icb3dcdb146c4c5ead34e1d88f5937deacee6f4f4 Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com> Signed-off-by: Thomas Kosiewski <tk@coder.com>
1 parent 8b9cfaa commit c449135

1 file changed

Lines changed: 14 additions & 3 deletions

File tree

.github/workflows/ci.yml

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,28 @@ jobs:
2828
# on these. 26.3.0 matches the version pinned in mise.toml.
2929
node: ["22", "24", "26.3.0"]
3030
env:
31-
# mise-action installs pnpm from mise.toml; this overrides only the node
32-
# version per matrix cell.
31+
# Override the node version per matrix cell. MISE_LOCKFILE=false disables
32+
# mise's locked mode for this job: mise.lock only pins node 26.3.0, so the
33+
# 22/24 cells aren't in the lock and locked mode would refuse them. Tool
34+
# versions still come from mise.toml; the lock stays authoritative for local
35+
# dev and the (un-overridden) lint-workflows job below.
3336
MISE_NODE_VERSION: ${{ matrix.node }}
37+
MISE_LOCKFILE: "false"
3438
steps:
3539
- name: Checkout
3640
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6
3741
with:
3842
persist-credentials: false
3943

40-
- name: Install node and pnpm via mise
44+
- name: Set up mise
4145
uses: jdx/mise-action@e6a8b3978addb5a52f2b4cd9d91eafa7f0ab959d # v4
46+
with:
47+
# Don't auto-install: the action force-adds `--locked` when a lockfile
48+
# is present, which fails for matrix node versions not in the lock.
49+
install: false
50+
51+
- name: Install node and pnpm via mise
52+
run: mise install node pnpm
4253

4354
- name: Resolve pnpm store path
4455
run: echo "STORE_PATH=$(pnpm store path --silent)" >> "$GITHUB_ENV"

0 commit comments

Comments
 (0)