From 4b2ad665f83e80d1d1dec6b756519d332d828c45 Mon Sep 17 00:00:00 2001 From: Feanil Patel Date: Thu, 19 Oct 2023 10:14:04 -0400 Subject: [PATCH] build: Pull the node version from .nvmrc. --- .github/workflows/release.yml | 6 ++++-- .nvmrc | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6dd04d45..8edd2b46 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -12,10 +12,12 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Setup Nodejs Env + run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV - name: Setup Node.js - uses: actions/setup-node@v1 + uses: actions/setup-node@v2 with: - node-version: 16 + node-version: ${{ env.NODE_VER }} - name: Install dependencies run: npm ci - name: Release diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 00000000..7950a445 --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v18.17.0