Skip to content

Commit

Permalink
chore(mise.toml,.github/workflows/): pin mise version in mise.toml an…
Browse files Browse the repository at this point in the history
…d github actions (#783)

* chore(mise.toml,.github/workflows/): pin mise version in mise.toml and github actions

* chore(.github/renovate.json5): ignore calver by cspell

* chore(.github/renovate.json5): split mise automerge settings

* style(.github/renovate.json5): fix json
  • Loading branch information
risu729 authored Nov 8, 2024
1 parent 5f87465 commit dda83b5
Show file tree
Hide file tree
Showing 5 changed files with 37 additions and 1 deletion.
29 changes: 28 additions & 1 deletion .github/renovate.json5
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,26 @@
},
{
customType: "regex",
description: "Update $schema in biome.jsonc",
description: "Updates mise versions in mise.toml and GitHub Actions",
fileMatch: [
"^mise\\.toml$",
"^wsl/\\.config/mise/config\\.toml$",
"^\\.github/workflows/.+\\.yml$",
],
datasourceTemplate: "github-releases",
depNameTemplate: "mise",
packageNameTemplate: "jdx/mise",
versioningTemplate: "semver",
matchStrings: [
// prettier-ignore
"min_version *= *\"(?<currentValue>.+?)\"",
// prettier-ignore
"version *: *(?<currentValue>.+?)",
],
},
{
customType: "regex",
description: "Updates $schema in biome.jsonc",
// prettier-ignore
fileMatch: ["^biome\.jsonc$"],
datasourceTemplate: "npm",
Expand All @@ -104,6 +123,14 @@
matchDepNames: ["node"],
ignoreUnstable: false,
},
// automerge
{
matchDepNames: ["mise"],
// cspell:ignore calver
// mise uses Calver, so allow automerge for all versions
// ref: https://mise.jdx.dev/project-roadmap.html#versioning
automerge: true,
},
// group dependency updates
{
// group biome in mise.toml and biome.jsonc
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@53d027c2e96fed8f955f5d95bff910a3e031cc58 # v2.1.6
with:
version: 2024.11.2
# backends are required to run mise list
# cspell:ignore binstall
install_args: bun node cargo-binstall
Expand Down Expand Up @@ -73,6 +74,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@53d027c2e96fed8f955f5d95bff910a3e031cc58 # v2.1.6
with:
version: 2024.11.2
install_args: ${{ matrix.tools }}
experimental: true

Expand All @@ -94,6 +96,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@53d027c2e96fed8f955f5d95bff910a3e031cc58 # v2.1.6
with:
version: 2024.11.2
install_args: bun node
experimental: true

Expand Down
2 changes: 2 additions & 0 deletions .github/workflows/worker.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@53d027c2e96fed8f955f5d95bff910a3e031cc58 # v2.1.6
with:
version: 2024.11.2
install_args: bun
experimental: true

Expand Down Expand Up @@ -68,6 +69,7 @@ jobs:
- name: Install mise
uses: jdx/mise-action@53d027c2e96fed8f955f5d95bff910a3e031cc58 # v2.1.6
with:
version: 2024.11.2
install_args: bun
experimental: true

Expand Down
2 changes: 2 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ref: https://mise.jdx.dev/configuration.html
#:schema https://mise.jdx.dev/schema/mise.json

min_version = "2024.11.2"

[tools]
bun = "1.1.34"
node = "23.1.0"
Expand Down
2 changes: 2 additions & 0 deletions wsl/.config/mise/config.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# ref: https://mise.jdx.dev/configuration.html#global-config-config-mise-config-toml
#:schema https://mise.jdx.dev/schema/mise.json

min_version = "2024.11.2"

[tools]
# language tools
node = "latest"
Expand Down

0 comments on commit dda83b5

Please sign in to comment.