diff --git a/.github/workflows/pipeline.yml b/.github/workflows/pipeline.yml index 8d6f746f..9c17a198 100644 --- a/.github/workflows/pipeline.yml +++ b/.github/workflows/pipeline.yml @@ -29,7 +29,7 @@ jobs: - name: Use Node uses: actions/setup-node@v3 with: - node-version: 16 + node-version-file: '.nvmrc' - name: Install dependencies uses: bahmutov/npm-install@v1 @@ -96,7 +96,7 @@ jobs: - name: Use Node uses: actions/setup-node@v3 with: - node-version: 16 + node-version-file: '.nvmrc' - name: Install dependencies uses: bahmutov/npm-install@v1 diff --git a/.github/workflows/smoke-test.yml b/.github/workflows/smoke-test.yml index 6da06d1f..04816337 100644 --- a/.github/workflows/smoke-test.yml +++ b/.github/workflows/smoke-test.yml @@ -14,7 +14,8 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version-file: '.nvmrc' + cache: 'npm' - run: | npm install npm run build diff --git a/.npmrc b/.npmrc index 43c97e71..62a81f06 100644 --- a/.npmrc +++ b/.npmrc @@ -1 +1,2 @@ package-lock=false +auto-install-peers=true diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..b6a7d89c --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +16 diff --git a/MAINTAINERS.md b/MAINTAINERS.md index 302b3cd7..1d92022d 100644 --- a/MAINTAINERS.md +++ b/MAINTAINERS.md @@ -1,5 +1,11 @@ This document outlines some processes that the maintainers should stick to. +## Node.js version + +We will try to stick to the same range of [Node.js versions supported by ESLint](https://github.com/eslint/eslint#installation-and-usage) as much as possible. + +For local development and CI, we will use the Maintenance LTS version (specified in `.nvmrc` file). + ## Issues Process There are 3 types of issues that can be created: