diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 91b72554..282bb86a 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -11,12 +11,17 @@ jobs: runs-on: ubuntu-latest steps: - - uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 + - name: Checkout repository + uses: actions/checkout@f43a0e5ff2bd294095638e18286ca9a3d1956744 # pin@v3 - - name: Use Node - uses: actions/setup-node@1a4442cacd436585916779262731d5b162bc6ec7 # pin@v3 + - name: Read .nvmrc + run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" + id: nvm + + - name: Use Node.js (.nvmrc) + uses: actions/setup-node@v3 with: - node-version: '17.x' + node-version: "${{ steps.nvm.outputs.NVMRC }}" - name: Install NPM dependencies run: npm install diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..a9d08739 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +18.19.0