From d933f149e9c0ea8c9f9dc04a2e300f8fc6561d1c Mon Sep 17 00:00:00 2001 From: Xennis Date: Fri, 22 May 2026 23:54:35 +0200 Subject: [PATCH] chore: add mise.toml and use mise in CI Pin Node 24 and pnpm 9 via mise. Replace pnpm/action-setup with jdx/mise-action in ci, release, and examples-cd workflows. --- .github/workflows/ci.yml | 10 ++++------ .github/workflows/examples-cd.yml | 12 ++---------- .github/workflows/release.yml | 13 ++++--------- mise.toml | 3 +++ 4 files changed, 13 insertions(+), 25 deletions(-) create mode 100644 mise.toml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ad857a6..98993a6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -11,12 +11,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 9 - run_install: | - - args: [--frozen-lockfile] + - name: Install mise + uses: jdx/mise-action@v2 + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Check code format run: pnpm run format:check - name: Build packages diff --git a/.github/workflows/examples-cd.yml b/.github/workflows/examples-cd.yml index ec66a0c..637695c 100644 --- a/.github/workflows/examples-cd.yml +++ b/.github/workflows/examples-cd.yml @@ -31,16 +31,8 @@ jobs: steps: - name: Checkout uses: actions/checkout@v4 - #- name: Setup Node - # uses: actions/setup-node@v4 - # with: - # node-version: "20" - # cache: "pnpm" - - name: Install pnpm - uses: pnpm/action-setup@v3 - with: - version: 9 - run_install: false + - name: Install mise + uses: jdx/mise-action@v2 #- name: Setup Pages # uses: actions/configure-pages@v5 # with: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7b417c1..7f58d16 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,15 +9,10 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - #- uses: actions/setup-node@v4 - # with: - # node-version: 16 - - name: Install pnpm - uses: pnpm/action-setup@v4 - with: - version: 9 - run_install: | - - args: [--frozen-lockfile] + - name: Install mise + uses: jdx/mise-action@v2 + - name: Install dependencies + run: pnpm install --frozen-lockfile - name: Build packages run: pnpm --filter './packages/*' run build - name: Set publishing config diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..ffe6a0c --- /dev/null +++ b/mise.toml @@ -0,0 +1,3 @@ +[tools] +node = "24" +pnpm = "9"