From dda83b56645f356ac537c7cc52d870bbe0c97f3b Mon Sep 17 00:00:00 2001 From: Risu <79110363+risu729@users.noreply.github.com> Date: Fri, 8 Nov 2024 12:13:28 +0900 Subject: [PATCH] chore(mise.toml,.github/workflows/): pin mise version in mise.toml and 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 --- .github/renovate.json5 | 29 ++++++++++++++++++++++++++++- .github/workflows/lint.yml | 3 +++ .github/workflows/worker.yml | 2 ++ mise.toml | 2 ++ wsl/.config/mise/config.toml | 2 ++ 5 files changed, 37 insertions(+), 1 deletion(-) diff --git a/.github/renovate.json5 b/.github/renovate.json5 index ce768525..41e5920e 100644 --- a/.github/renovate.json5 +++ b/.github/renovate.json5 @@ -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 *= *\"(?.+?)\"", + // prettier-ignore + "version *: *(?.+?)", + ], + }, + { + customType: "regex", + description: "Updates $schema in biome.jsonc", // prettier-ignore fileMatch: ["^biome\.jsonc$"], datasourceTemplate: "npm", @@ -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 diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index 134f0378..40a66ecc 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 @@ -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 @@ -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 diff --git a/.github/workflows/worker.yml b/.github/workflows/worker.yml index c7f9304b..1335e2b0 100644 --- a/.github/workflows/worker.yml +++ b/.github/workflows/worker.yml @@ -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 @@ -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 diff --git a/mise.toml b/mise.toml index 3d295ba4..4067b545 100644 --- a/mise.toml +++ b/mise.toml @@ -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" diff --git a/wsl/.config/mise/config.toml b/wsl/.config/mise/config.toml index 3709772e..6e53d625 100644 --- a/wsl/.config/mise/config.toml +++ b/wsl/.config/mise/config.toml @@ -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"