From aac86a03e17a120d6ebdb7a93fada176aa88c310 Mon Sep 17 00:00:00 2001 From: Ilya Semenov Date: Mon, 7 Oct 2024 13:55:59 +0700 Subject: [PATCH] chore: use mise, Node 20 and corepack --- .github/workflows/release.yml | 15 ++++++++------- .mise.toml | 5 +++++ package.json | 5 +++++ 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .mise.toml diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b089dae..17588b0 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" + node-version: 20.18 + cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm build diff --git a/.mise.toml b/.mise.toml new file mode 100644 index 0000000..3bb0a44 --- /dev/null +++ b/.mise.toml @@ -0,0 +1,5 @@ +[env] +MISE_NODE_COREPACK = 1 + +[tools] +node = "20.18" diff --git a/package.json b/package.json index 86d87e0..92efb91 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.33.7", "repository": { "type": "git", "url": "https://github.com/IlyaSemenov/grammy-scenes" @@ -19,6 +20,10 @@ "dist", "src" ], + "engines": { + "node": "20", + "pnpm": "7" + }, "scripts": { "build": "tsup", "prepack": "npm run build",