Skip to content

Commit

Permalink
fix: upgrade to node16
Browse files Browse the repository at this point in the history
  • Loading branch information
binodpant committed Nov 23, 2021
1 parent 402cf76 commit 847d145
Show file tree
Hide file tree
Showing 3 changed files with 25 additions and 21 deletions.
39 changes: 20 additions & 19 deletions .github/workflows/ci.yml
Expand Up @@ -6,34 +6,35 @@ on:
- master
pull_request:
branches:
- '**'
- "**"

jobs:
build:
runs-on: ubuntu-20.04
steps:
- name: Checkout
uses: actions/checkout@v2
- name: Checkout
uses: actions/checkout@v2

- name: Setup Nodejs
uses: actions/setup-node@v1
with:
node-version: 12
- name: Setup Nodejs
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
uses: dcodeIO/setup-node-nvm@v4
with:
node-version: "${{ env.NODE_VER }}"

- name: Install dependencies
run: npm ci
- name: Install dependencies
run: npm ci

- name: Lint
run: npm run lint
- name: Lint
run: npm run lint

- name: Test
run: npm run test
- name: Test
run: npm run test

- name: Build
run: npm run build
- name: Build
run: npm run build

- name: Docs
run: npm run docs
- name: Docs
run: npm run docs

- name: Run Coverage
uses: codecov/codecov-action@v2
- name: Run Coverage
uses: codecov/codecov-action@v2
5 changes: 3 additions & 2 deletions .github/workflows/release.yml
Expand Up @@ -15,9 +15,10 @@ jobs:
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v1
run: echo "NODE_VER=`cat .nvmrc`" >> $GITHUB_ENV
uses: dcodeIO/setup-node-nvm@v4
with:
node-version: 12
node-version: "${{ env.NODE_VER }}"

- name: Install dependencies
run: npm ci
Expand Down
2 changes: 2 additions & 0 deletions .nvmrc
@@ -0,0 +1,2 @@
v16

0 comments on commit 847d145

Please sign in to comment.