From b1c4e4a725b324d5c81fb618e268e2f9520c5ace Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Sat, 8 Nov 2025 00:06:49 +0900 Subject: [PATCH] Mise Signed-off-by: Sora Morimoto --- .envrc | 6 ------ .github/workflows/main.yml | 16 ++++++++-------- .github/workflows/typedoc.yml | 17 ++++++----------- .github/workflows/version-or-publish.yml | 13 ++++--------- .nvmrc | 1 - mise.toml | 4 ++++ 6 files changed, 22 insertions(+), 35 deletions(-) delete mode 100644 .envrc delete mode 100644 .nvmrc create mode 100644 mise.toml diff --git a/.envrc b/.envrc deleted file mode 100644 index 437c64475..000000000 --- a/.envrc +++ /dev/null @@ -1,6 +0,0 @@ -# shellcheck shell=bash -export NODE_VERSIONS="${HOME}/.nvm/versions/node" -export NODE_VERSION_PREFIX="v" -use node -layout node -corepack enable diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 225ef33ed..2362e1a0d 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -11,18 +11,18 @@ jobs: strategy: fail-fast: false matrix: - node-version: [24, 22, 20] + node-version: [25, 24, 22, 20] runs-on: ubuntu-latest steps: - name: Checkout tree - uses: actions/checkout@v5 - - name: Set-up Node.js - uses: actions/setup-node@v6 + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Set-up Mise + uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 with: - check-latest: true - node-version: ${{ matrix.node-version }} - package-manager-cache: false - - run: corepack enable + mise_toml: | + [tools] + node = "${{ matrix.node-version }}" + yarn = "4" - run: yarn install --immutable - run: yarn format:check - run: yarn build diff --git a/.github/workflows/typedoc.yml b/.github/workflows/typedoc.yml index 9c6d15eb8..bf38e4b62 100644 --- a/.github/workflows/typedoc.yml +++ b/.github/workflows/typedoc.yml @@ -24,22 +24,17 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout tree - uses: actions/checkout@v5 - - name: Set-up Node.js - uses: actions/setup-node@v6 - with: - check-latest: true - node-version-file: .nvmrc - package-manager-cache: false - - run: corepack enable + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Set-up Mise + uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 - run: yarn install --immutable - run: yarn typedoc - name: Set-up Pages - uses: actions/configure-pages@v5 + uses: actions/configure-pages@983d7736d9b0ae728b81ab479565c72886d7745b # v5.0.0 - name: Upload artifact - uses: actions/upload-pages-artifact@v4 + uses: actions/upload-pages-artifact@7b1f4a764d45c48632c6b24a0339c27f5614fb0b # v4.0.0 with: path: docs - name: Deploy odoc to GitHub Pages - uses: actions/deploy-pages@v4 + uses: actions/deploy-pages@d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e # v4.0.5 id: deployment diff --git a/.github/workflows/version-or-publish.yml b/.github/workflows/version-or-publish.yml index 9afbee232..e408ef473 100644 --- a/.github/workflows/version-or-publish.yml +++ b/.github/workflows/version-or-publish.yml @@ -20,17 +20,12 @@ jobs: runs-on: ubuntu-latest steps: - name: Checkout tree - uses: actions/checkout@v5 - - name: Set-up Node.js - uses: actions/setup-node@v6 - with: - check-latest: true - node-version-file: .nvmrc - package-manager-cache: false - - run: corepack enable + uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 + - name: Set-up Mise + uses: jdx/mise-action@be3be2260bc02bc3fbf94c5e2fed8b7964baf074 # v3.4.0 - run: yarn install --immutable - name: Create Release Pull Request - uses: changesets/action@v1 + uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba # v1.5.3 with: version: yarn changeset version publish: yarn npm publish --tolerate-republish diff --git a/.nvmrc b/.nvmrc deleted file mode 100644 index a45fd52cc..000000000 --- a/.nvmrc +++ /dev/null @@ -1 +0,0 @@ -24 diff --git a/mise.toml b/mise.toml new file mode 100644 index 000000000..6d837986a --- /dev/null +++ b/mise.toml @@ -0,0 +1,4 @@ +[tools] +node = "25" +pinact = "latest" +yarn = "4"