From c843c6971ea9b5683e68527669e3128349c4c47e Mon Sep 17 00:00:00 2001 From: Sora Morimoto Date: Thu, 17 Oct 2024 05:53:49 +0900 Subject: [PATCH] nvm Signed-off-by: Sora Morimoto --- .github/workflows/workflow.yml | 3 ++- .nvmrc | 1 + CONTRIBUTING.md | 2 ++ 3 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 .nvmrc diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index d7fc2725..baa046c8 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -22,7 +22,8 @@ jobs: - name: Set-up Node.js uses: actions/setup-node@0a44ba7841725637a19e28fa30b79a866c81b0a6 # v4.0.4 with: - node-version: lts/* + check-latest: true + node-version-file: .nvmrc - run: corepack enable diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..2bd5a0a9 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +22 diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ecc640e1..434f0218 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -3,12 +3,14 @@ Requirements: - [Node.js](https://nodejs.org) + - Requires a relatively up-to-date version of Node.js - preferably the version in [.nvmrc](./.nvmrc). - [Corepack](https://nodejs.org/api/corepack.html) - Shipped with Node.js, however on some distributions it is not distributed, in which case install it through npm using: `npm install --global corepack` To regenerated the compiled JavaScript files in `dist/`, call: ``` +nvm install corepack enable yarn install --immutable yarn build