diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 79b1fc149..c7aebfac4 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -36,7 +36,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v4 with: - node-version: "lts/*" + node-version-file: "${{ env.UI_DIRECTORY }}/.nvmrc" - name: Install dependencies run: npm install diff --git a/.github/workflows/release_beta_to_dev.yaml b/.github/workflows/release_beta_to_dev.yaml index f7155984c..d5579f70a 100644 --- a/.github/workflows/release_beta_to_dev.yaml +++ b/.github/workflows/release_beta_to_dev.yaml @@ -38,7 +38,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v4 with: - node-version: "lts/*" + node-version-file: "${{ env.UI_DIRECTORY }}/.nvmrc" - name: Install Global Tools run: npm install -g release-it auto-changelog diff --git a/.github/workflows/release_dev_to_master.yaml b/.github/workflows/release_dev_to_master.yaml index dddf603b0..13eaefee7 100644 --- a/.github/workflows/release_dev_to_master.yaml +++ b/.github/workflows/release_dev_to_master.yaml @@ -40,7 +40,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v4 with: - node-version: "lts/*" + node-version-file: "${{ env.UI_DIRECTORY }}/.nvmrc" - name: Install Global Tools run: npm install -g release-it auto-changelog diff --git a/.github/workflows/test_bazarr_execution.yml b/.github/workflows/test_bazarr_execution.yml index 034eb782a..2ef1a8801 100644 --- a/.github/workflows/test_bazarr_execution.yml +++ b/.github/workflows/test_bazarr_execution.yml @@ -24,7 +24,7 @@ jobs: - name: Setup NodeJS uses: actions/setup-node@v4 with: - node-version: "lts/*" + node-version-file: "${{ env.UI_DIRECTORY }}/.nvmrc" - name: Install UI Dependencies run: npm install diff --git a/frontend/.nvmrc b/frontend/.nvmrc new file mode 100644 index 000000000..973f49d55 --- /dev/null +++ b/frontend/.nvmrc @@ -0,0 +1 @@ +20.13 diff --git a/frontend/README.md b/frontend/README.md index 135ccb4f6..b3af2f6f4 100644 --- a/frontend/README.md +++ b/frontend/README.md @@ -2,9 +2,12 @@ ## Dependencies -- [Node.js](https://nodejs.org/) +- Either [Node.js](https://nodejs.org/) installed manually or using [Node Version Manager](https://github.com/nvm-sh/nvm) - npm (included in Node.js) +> The recommended Node version to use and maintained is managed on the `.nvmrc` file. You can either install manually +> or use `nvm install` followed by `nvm use`. + ## Getting Started 1. Clone or download this repository