-
-
Notifications
You must be signed in to change notification settings - Fork 2
chore: migrate to mise.toml
#35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -16,13 +16,14 @@ jobs: | |
| - uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1 | ||
| with: | ||
| persist-credentials: false | ||
| - uses: jdx/mise-action@146a28175021df8ca24f8ee1828cc2a60f980bd5 # v3.5.1 | ||
| - name: Get Node.js version from mise.toml | ||
| id: node-version | ||
| run: echo "version=$(mise ls --local --json | jq -r '.node[0].requested_version')" >> "$GITHUB_OUTPUT" | ||
| - uses: actions/setup-node@395ad3262231945c25e8478fd5baf05154b1d79f # v6.1.0 | ||
|
Comment on lines
+19
to
23
|
||
| with: | ||
| node-version-file: ".tool-versions" | ||
| node-version: ${{ steps.node-version.outputs.version }} | ||
| registry-url: "https://registry.npmjs.org" | ||
| - uses: oven-sh/setup-bun@735343b667d3e6f658f44d0eca948eb6282f2b76 # v2.0.2 | ||
| with: | ||
| bun-version-file: ".tool-versions" | ||
| - run: bun install --frozen-lockfile | ||
| - run: npm run build | ||
| - run: npm publish --provenance | ||
This file was deleted.
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,8 @@ | ||||||
| [tools] | ||||||
| bun="1.2.13" | ||||||
| nodejs="24.12.0" | ||||||
|
3w36zj6 marked this conversation as resolved.
|
||||||
| pinact="3.2.0" | ||||||
| zizmor="1.18.0" | ||||||
| actionlint="1.7.9" | ||||||
| ghalint="1.5.3" | ||||||
|
3w36zj6 marked this conversation as resolved.
|
||||||
| jq = "1.8.1" | ||||||
|
||||||
| jq = "1.8.1" | |
| jq="1.8.1" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The
mise lsJSON is being queried with.node[0].requested_version, butmise.tomldefines the tool asnodejs. This likely makes the jq expression fail at runtime (missing key) and will break publishing. Update the jq filter (or the tool name inmise.toml) so the JSON key matches, and consider using a more direct command likemise current <tool>to avoid relying onlsoutput structure.