From e2af80fb5d113aec741a3fd612a9459206b062b4 Mon Sep 17 00:00:00 2001 From: Ryan Turner Date: Sat, 16 Nov 2024 15:04:39 -0600 Subject: [PATCH] chore(nvm): adopt nvm for managing node versions, update docs to refelct that. (#1579) Co-authored-by: rcarteraz --- .github/workflows/ci.yml | 2 +- .nvmrc | 1 + docs/development/documentation/local-dev.mdx | 6 +++++- 3 files changed, 7 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f55a95de..ea95aecc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -34,7 +34,7 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v4 with: - node-version: '23.1.0' + node-version-file: '.nvmrc' - name: Install Dependencies run: pnpm install diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..ed1add2e --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +23.1.0 \ No newline at end of file diff --git a/docs/development/documentation/local-dev.mdx b/docs/development/documentation/local-dev.mdx index ae64ff27..1f33a711 100644 --- a/docs/development/documentation/local-dev.mdx +++ b/docs/development/documentation/local-dev.mdx @@ -8,7 +8,7 @@ sidebar_label: Local Development In order to set up your local environment, you will need to install: -- [Node.js Runtime](https://nodejs.org) +- [Node Version Manager](https://github.com/nvm-sh/nvm) - [PNPM Package Manager](https://pnpm.io) ## Getting Started @@ -41,6 +41,10 @@ git submodule update --init --recursive ### Install Dependencies +```shell title="Install Node.js using NVM" +nvm install && nvm use +``` + ```shell title="Install dependencies using pnpm" pnpm i ```