From 56a11d07082cd7eef48a77570c3fd7dbcd838671 Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Mon, 7 Oct 2024 13:55:59 +0700 Subject: [PATCH] chore: use mise and corepack --- .github/workflows/release.yml | 13 +++++++------ .mise.toml | 5 +++++ package.json | 5 +++++ 3 files changed, 17 insertions(+), 6 deletions(-) create mode 100644 .mise.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b089dae..d09263a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -7,16 +7,17 @@ jobs: release: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3.1.0 + - name: Checkout + uses: actions/checkout@v4 - - uses: pnpm/action-setup@v2.2.4 - with: - version: 7.19.0 + - name: Enable corepack + run: corepack enable - - uses: actions/setup-node@v3.5.1 + - name: Setup node + uses: actions/setup-node@v4 with: node-version: 18.12.1 - cache: "pnpm" + cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm build diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..c6d6d4f --- /dev/null +++ b/.mise.toml @@ -0,0 +1,5 @@ +[env] +MISE_NODE_COREPACK = 1 + +[tools] +node = "18.12.1" diff --git a/package.json b/package.json index 86d87e0..deb5af5 100644 --- a/package.json +++ b/package.json @@ -2,6 +2,7 @@ "name": "grammy-scenes", "description": "Nested named scenes for grammY", "version": "0.0.0-development", + "packageManager": "pnpm@7.19.0", "repository": { "type": "git", "url": "https://github.com/IlyaSemenov/grammy-scenes" @@ -19,6 +20,10 @@ "dist", "src" ], + "engines": { + "node": "18", + "pnpm": "7" + }, "scripts": { "build": "tsup", "prepack": "npm run build",