Skip to content

Commit

Permalink
Upgrade node runtime to v16 (#341)
Browse files Browse the repository at this point in the history
* Upgrade node runntime to v16

* Upgrade node environment
- Fix eslint failures
- Adapt ci workflow

* Add name to ci step
  • Loading branch information
robinraju authored Dec 7, 2021
1 parent a156cdf commit 4bdb8ee
Show file tree
Hide file tree
Showing 8 changed files with 16,933 additions and 10,499 deletions.
1 change: 1 addition & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"rules": {
"eslint-comments/no-use": "off",
"import/no-namespace": "off",
"i18n-text/no-en": "off",
"no-unused-vars": "off",
"@typescript-eslint/no-unused-vars": "error",
"@typescript-eslint/explicit-member-accessibility": ["error", {"accessibility": "no-public"}],
Expand Down
23 changes: 10 additions & 13 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,24 +8,21 @@ on:

jobs:
build: # make sure build/ci work properly
runs-on: ${{ matrix.os }}
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest]
runs-on: ubuntu-latest

steps:

- name: Checkout Repo
uses: actions/checkout@v2
- name: Cache node_modules
uses: actions/cache@v2.1.6

- name: Setup node and cache dependencies
uses: actions/setup-node@v2
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: ${{ runner.os }}-node-

- run: |
node-version: '16'
cache: 'npm'

- name: Build andd test
run: |
npm install
npm run all
Expand Down
1 change: 1 addition & 0 deletions .nvmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v16.13.1
2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ inputs:
default: ""
required: false
runs:
using: "node12"
using: "node16"
main: "dist/index.js"
branding:
icon: "download"
Expand Down
Loading

0 comments on commit 4bdb8ee

Please sign in to comment.