Merge pull request #3 from edx/kclary/node

fix: update node to 16, using .nvmrc file, to support later versions of semantic-release.
This commit is contained in:
kenclary
2021-12-03 16:48:58 -05:00
committed by GitHub
4 changed files with 10 additions and 5 deletions

View File

@@ -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

View File

@@ -7,4 +7,4 @@ on:
jobs:
commitlint:
uses: edx/.github/.github/workflows/commitlint.yml@main
uses: edx/.github/.github/workflows/commitlint.yml@master

View File

@@ -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

1
.nvmrc Normal file
View File

@@ -0,0 +1 @@
v16