From 9da7ad4a8781582b767dd3451b87ff2220e78927 Mon Sep 17 00:00:00 2001 From: Nathan Lisgo Date: Thu, 8 Feb 2024 22:58:39 +0000 Subject: [PATCH] Specify node version in nvmrc --- .github/workflows/ci.yaml | 10 +++++++--- .nvmrc | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 64418bd..787b989 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -16,10 +16,14 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-node@v4 + - name: Read .nvmrc + run: echo "NVMRC=$(cat .nvmrc)" >> $GITHUB_OUTPUT + id: nvm + - name: Use Node.js (.nvmrc) + uses: actions/setup-node@v4 with: - node-version: 16 - cache: 'yarn' + node-version: "${{ steps.nvm.outputs.NVMRC }}" + cache: yarn - name: install dependencies run: yarn - name: run lint diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 0000000..53d838a --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +lts/gallium