diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 3e72877..52263e7 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -23,13 +23,14 @@ jobs: with: persist-credentials: false - - name: 🟢 Setup Node.js - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 + - name: 🛠️ Setup mise + uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0 with: - node-version-file: .node-version + install: true + cache: true - - name: ⌛ Setup pnpm - uses: withvariablelab/gh-actions/actions/setup-pnpm@main + - name: 📦 Install dependencies + run: pnpm install --frozen-lockfile - name: 💅 Lint and typecheck run: pnpm rr check diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 9c9350a..56d6e33 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -29,13 +29,14 @@ jobs: with: persist-credentials: false - - name: 🟢 Setup Node.js - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 + - name: 🛠️ Setup mise + uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0 with: - node-version-file: .node-version + install: true + cache: true - - name: ⌛ Setup pnpm - uses: withvariablelab/gh-actions/actions/setup-pnpm@main + - name: 📦 Install dependencies + run: pnpm install --frozen-lockfile - name: 🔑 Mint vland-bot token id: app-token @@ -84,13 +85,14 @@ jobs: with: persist-credentials: false - - name: 🟢 Setup Node.js - uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0 + - name: 🛠️ Setup mise + uses: jdx/mise-action@c2a87611a18de5b3828c5652fe268e992400cb5c # v4.3.0 with: - node-version-file: .node-version + install: true + cache: true - - name: ⌛ Setup pnpm - uses: withvariablelab/gh-actions/actions/setup-pnpm@main + - name: 📦 Install dependencies + run: pnpm install --frozen-lockfile - name: 🚀 Publish preview id: preview diff --git a/.node-version b/.node-version deleted file mode 100644 index b832e40..0000000 --- a/.node-version +++ /dev/null @@ -1 +0,0 @@ -24.16.0 diff --git a/mise.lock b/mise.lock new file mode 100644 index 0000000..3dc44ab --- /dev/null +++ b/mise.lock @@ -0,0 +1,65 @@ +# @generated - this file is auto-generated by `mise lock` https://mise.en.dev/dev-tools/mise-lock.html + +[[tools.node]] +version = "24.21.0" +backend = "core:node" + +[tools.node."platforms.linux-arm64"] +checksum = "sha256:724282c3b43aec998aa9527380465b45d229e021b58035f5f4f63095eabfe5d5" +url = "https://nodejs.org/dist/v24.21.0/node-v24.21.0-linux-arm64.tar.gz" + +[tools.node."platforms.linux-arm64-musl"] +checksum = "sha256:3048b0811e158ca0d8672b59c839861763e144492980d8d29b369dfee45747e4" +url = "https://unofficial-builds.nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-arm64-musl.tar.gz" + +[tools.node."platforms.linux-x64"] +checksum = "sha256:6e1db87ef58b8819e5d5402eff1536491b18edd8eb7bee5ef7897876e88dc5ff" +url = "https://nodejs.org/dist/v24.21.0/node-v24.21.0-linux-x64.tar.gz" + +[tools.node."platforms.linux-x64-musl"] +checksum = "sha256:01a713e34da98e7b4d2a3191ee7ca3f93dd0384d1a2ef23c379b2161ee6e133a" +url = "https://unofficial-builds.nodejs.org/download/release/v24.21.0/node-v24.21.0-linux-x64-musl.tar.gz" + +[tools.node."platforms.macos-arm64"] +checksum = "sha256:bed7eea5325e1108f32ce5228ddd6a5f0f08a499ee42aa7442aea583702f6057" +url = "https://nodejs.org/dist/v24.21.0/node-v24.21.0-darwin-arm64.tar.gz" + +[tools.node."platforms.macos-x64"] +checksum = "sha256:1462cb3b3046b815cf8ea436d3da450ec1a9f11dac7e5a46b0ada5305d7e8097" +url = "https://nodejs.org/dist/v24.21.0/node-v24.21.0-darwin-x64.tar.gz" + +[tools.node."platforms.windows-x64"] +checksum = "sha256:158f7685b44de51f6c0df1d153526cbcd3e1bc739a8dfc607721cef75de9e541" +url = "https://nodejs.org/dist/v24.21.0/node-v24.21.0-win-x64.zip" + +[[tools.pnpm]] +version = "10.30.3" +backend = "aqua:pnpm/pnpm" + +[tools.pnpm."platforms.linux-arm64"] +checksum = "sha256:9488f48d6967bfa8f5ebc5c077aae297d2fe25287697b4c8edf991ff945d8af7" +url = "https://github.com/pnpm/pnpm/releases/download/v10.30.3/pnpm-linux-arm64" + +[tools.pnpm."platforms.linux-arm64-musl"] +checksum = "sha256:9488f48d6967bfa8f5ebc5c077aae297d2fe25287697b4c8edf991ff945d8af7" +url = "https://github.com/pnpm/pnpm/releases/download/v10.30.3/pnpm-linux-arm64" + +[tools.pnpm."platforms.linux-x64"] +checksum = "sha256:5dc971e801610471b5cd6729ba289531be6695bd50d5e833fe22b18896b13a06" +url = "https://github.com/pnpm/pnpm/releases/download/v10.30.3/pnpm-linux-x64" + +[tools.pnpm."platforms.linux-x64-musl"] +checksum = "sha256:5dc971e801610471b5cd6729ba289531be6695bd50d5e833fe22b18896b13a06" +url = "https://github.com/pnpm/pnpm/releases/download/v10.30.3/pnpm-linux-x64" + +[tools.pnpm."platforms.macos-arm64"] +checksum = "sha256:ccfb6e54fe29d13715e2fe418ef0374cde5a7f68b95f5ed5da5f564886af9d17" +url = "https://github.com/pnpm/pnpm/releases/download/v10.30.3/pnpm-macos-arm64" + +[tools.pnpm."platforms.macos-x64"] +checksum = "sha256:d9be0fd3989c09f5abf7e52f10d8d0294f757af61bbbd59727d607c85205a788" +url = "https://github.com/pnpm/pnpm/releases/download/v10.30.3/pnpm-macos-x64" + +[tools.pnpm."platforms.windows-x64"] +checksum = "sha256:de8337a864056472542b951ab23ad54149cc63127bb2faf3175b7902b764f188" +url = "https://github.com/pnpm/pnpm/releases/download/v10.30.3/pnpm-win-x64.exe" diff --git a/mise.toml b/mise.toml index f5d8d74..69e8a8b 100644 --- a/mise.toml +++ b/mise.toml @@ -2,5 +2,8 @@ _.path = ["{{config_root}}/node_modules/.bin"] [tools] -node = "24.16.0" +node = "24" pnpm = "10.30.3" + +[settings] +lockfile = true