From 977be27a41db60166b3d455246d27f5730388c53 Mon Sep 17 00:00:00 2001 From: Hironori Takahashi Date: Tue, 1 Dec 2026 18:53:07 +0900 Subject: [PATCH 1/3] feat: add setup-toolchain composite action Promotes renovate-config's local setup action to a shared one: jdx/mise-action (mise version itself Renovate-annotated) installs the runtimes a repo pins in .mise.toml, plus pnpm store caching and a frozen-lockfile install for pnpm repos. Non-pnpm repos get just the runtimes. --- actions/setup-toolchain/action.yml | 34 ++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 actions/setup-toolchain/action.yml diff --git a/actions/setup-toolchain/action.yml b/actions/setup-toolchain/action.yml new file mode 100644 index 0000000..2fe9de1 --- /dev/null +++ b/actions/setup-toolchain/action.yml @@ -0,0 +1,34 @@ +name: setup-toolchain +description: Install mise-managed runtimes and, for pnpm repos, the lockfile-pinned dependencies + +inputs: + install: + description: Run pnpm install --frozen-lockfile --ignore-scripts when pnpm-lock.yaml exists + default: "true" + +runs: + using: composite + steps: + - uses: jdx/mise-action@3277a0f272901982804abc53abd93520db809be4 # v5.4.0 + with: + # renovate: datasource=github-releases depName=jdx/mise + version: "2026.11.16" + + - name: Resolve pnpm store path + if: hashFiles('pnpm-lock.yaml') != '' + id: pnpm-store + shell: bash + run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" + + - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 + if: hashFiles('pnpm-lock.yaml') != '' + with: + path: ${{ steps.pnpm-store.outputs.path }} + key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + pnpm-store-${{ runner.os }}- + + - name: Install dependencies + if: inputs.install == 'true' && hashFiles('pnpm-lock.yaml') != '' + shell: bash + run: pnpm install --frozen-lockfile --ignore-scripts || { echo "::error::Lockfile out of date. Run 'pnpm install' locally and commit pnpm-lock.yaml"; exit 1; } From 8e0f5d7c59330e84cecce3ffe07d589982b9f551 Mon Sep 17 00:00:00 2001 From: Hironori Takahashi Date: Tue, 1 Dec 2026 18:53:07 +0900 Subject: [PATCH 2/3] ci: read the toolchain from the caller's .mise.toml in ci-node MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Replaces pnpm/action-setup + setup-node (node-version input, default 26) with mise-action, so each calling repo's .mise.toml is the single source of truth for node/pnpm. The node-version input is dropped — no caller passes it. Install gains --ignore-scripts, matching pnpm's own default of not running dependency scripts. --- .github/workflows/ci-node.yml | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci-node.yml b/.github/workflows/ci-node.yml index 85c3761..8082011 100644 --- a/.github/workflows/ci-node.yml +++ b/.github/workflows/ci-node.yml @@ -2,12 +2,6 @@ name: CI (Node.js) on: workflow_call: - inputs: - node-version: - description: Node.js version - type: string - # renovate: datasource=node-version depName=node - default: "26" permissions: contents: read @@ -18,14 +12,25 @@ jobs: steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 - - uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1 + # Toolchain comes from the calling repository's .mise.toml — the single + # source of truth for node/pnpm versions, kept fresh by Renovate. + - uses: jdx/mise-action@3277a0f272901982804abc53abd93520db809be4 # v5.4.0 + with: + # renovate: datasource=github-releases depName=jdx/mise + version: "2026.11.16" + + - name: Resolve pnpm store path + id: pnpm-store + run: echo "path=$(pnpm store path)" >> "$GITHUB_OUTPUT" - - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 + - uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 with: - node-version: ${{ inputs.node-version }} - cache: pnpm + path: ${{ steps.pnpm-store.outputs.path }} + key: pnpm-store-${{ runner.os }}-${{ hashFiles('pnpm-lock.yaml') }} + restore-keys: | + pnpm-store-${{ runner.os }}- - - run: pnpm install --frozen-lockfile || { echo "::error::Lockfile out of date. Run 'pnpm install' locally and commit pnpm-lock.yaml"; exit 1; } + - run: pnpm install --frozen-lockfile --ignore-scripts || { echo "::error::Lockfile out of date. Run 'pnpm install' locally and commit pnpm-lock.yaml"; exit 1; } - run: pnpm run --if-present build - run: pnpm run --if-present lint - run: pnpm run --if-present typecheck From 41b3c56ffc67b657df64500036d11c40c168221e Mon Sep 17 00:00:00 2001 From: Hironori Takahashi Date: Tue, 1 Dec 2026 18:53:08 +0900 Subject: [PATCH 3/3] fix: refresh stale node 24 pins with Renovate annotations MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit publish-node and ci-markdown hardcoded node-version: 24 with nothing keeping it current. These stay on setup-node — ci-markdown's callers need no .mise.toml and publish-node's npm trusted-publishing flow is auth-sensitive — but the pin is now 26 and annotated so Renovate owns it. --- .github/workflows/ci-markdown.yml | 3 ++- .github/workflows/publish-node.yml | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-markdown.yml b/.github/workflows/ci-markdown.yml index df1d244..531a483 100644 --- a/.github/workflows/ci-markdown.yml +++ b/.github/workflows/ci-markdown.yml @@ -23,6 +23,7 @@ jobs: - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 24 + # renovate: datasource=node-version depName=node + node-version: "26" - run: npx markdownlint-cli2 "${{ inputs.glob }}" diff --git a/.github/workflows/publish-node.yml b/.github/workflows/publish-node.yml index 00a2247..412879c 100644 --- a/.github/workflows/publish-node.yml +++ b/.github/workflows/publish-node.yml @@ -17,7 +17,8 @@ jobs: - uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0 with: - node-version: 24 + # renovate: datasource=node-version depName=node + node-version: "26" registry-url: https://registry.npmjs.org - run: pnpm install --frozen-lockfile