From b37db23e8fb36ac7994fdbe79b55f3200f69533c Mon Sep 17 00:00:00 2001 From: Ken Clary Date: Fri, 3 Dec 2021 11:22:56 -0500 Subject: [PATCH] fix: update node to 16, using .nvmrc file, to support later versions of semantic-release. --- .github/workflows/ci.yml | 6 ++++-- .github/workflows/commitlint.yml | 2 +- .github/workflows/release.yml | 6 ++++-- .nvmrc | 1 + 4 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 .nvmrc diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 51f14c19a..d944ee989 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -8,10 +8,12 @@ jobs: uses: actions/checkout@v2 with: fetch-depth: 0 + - name: Setup Nodejs Env + run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV - name: Setup Nodejs - uses: actions/setup-node@v2 + uses: dcodeIO/setup-node-nvm@v4 with: - node-version: 12 + node-version: "${{ env.NODE_VER }}" - name: Install dependencies run: npm ci - name: Validate package-lock.json changes diff --git a/.github/workflows/commitlint.yml b/.github/workflows/commitlint.yml index a2e4229c3..e2b066153 100644 --- a/.github/workflows/commitlint.yml +++ b/.github/workflows/commitlint.yml @@ -7,4 +7,4 @@ on: jobs: commitlint: - uses: edx/.github/.github/workflows/commitlint.yml@main + uses: edx/.github/.github/workflows/commitlint.yml@master diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d2c876503..6ab04a8c0 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 Node.js Env + run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV - name: Setup Node.js - uses: actions/setup-node@v2 + uses: dcodeIO/setup-node-nvm@v4 with: - node-version: 12 + node-version: "${{ env.NODE_VER }}" - name: Install dependencies run: npm ci - name: Validate package-lock.json changes diff --git a/.nvmrc b/.nvmrc new file mode 100644 index 000000000..6f7f377bf --- /dev/null +++ b/.nvmrc @@ -0,0 +1 @@ +v16