Skip to content

Commit b3ed3b6

Browse files
devmgnclaude
andauthored
chore: migrate .tool-versions to mise.toml (#2699)
Replace .tool-versions with mise.toml for tool version management. Since actions/setup-node does not yet natively support mise.toml (actions/setup-node#1421), extract Node.js version via grep and pass it to the node-version input. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent eb6f0bb commit b3ed3b6

File tree

4 files changed

+13
-6
lines changed

4 files changed

+13
-6
lines changed

.claude/rules/ci.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,6 @@ paths:
88
- `main` + feature branches, CI runs on non-main branches only
99
- **lint.yml**: `pnpm check`**test.yml**: `pnpm test:unit`**build.yml**: `pnpm build` + upload `.next/`
1010
- **update-msw.yml**: Auto-update MSW worker (Renovate bot only)
11-
- Shared setup: ubuntu-24.04, 10min timeout, `pnpm/action-setup@v5`, Node.js from `.tool-versions`, copies `.env.development` to `.env.local`
11+
- Shared setup: ubuntu-24.04, 10min timeout, `pnpm/action-setup@v6`, Node.js from `mise.toml`, copies `.env.development` to `.env.local`
1212
- `upload-artifact` requires `include-hidden-files: true` for `.next/`
1313
- Action versions pinned by commit SHA

.github/actions/setup/action.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ inputs:
1010
runs:
1111
using: "composite"
1212
steps:
13+
- name: Read Node version from mise.toml
14+
id: versions
15+
shell: bash
16+
run: |
17+
echo "node=$(grep -E '^node\s*=' mise.toml | sed 's/.*=\s*"\(.*\)"/\1/')" >> "$GITHUB_OUTPUT"
18+
1319
- name: Install pnpm
1420
uses: pnpm/action-setup@08c4be7e2e672a47d11bd04269e27e5f3e8529cb # v6
1521

1622
- name: Setup Node.js
1723
uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f # v6
1824
with:
19-
node-version-file: ".tool-versions"
25+
node-version: ${{ steps.versions.outputs.node }}
2026
cache: "pnpm"
2127

2228
- name: Install dependencies

.tool-versions

Lines changed: 0 additions & 4 deletions
This file was deleted.

mise.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
[tools]
2+
actionlint = "1.7.12"
3+
node = "24.14.1"
4+
pnpm = "10.33.0"
5+
zizmor = "1.24.1"

0 commit comments

Comments
 (0)