Skip to content

Commit ba496a1

Browse files
authored
Update NodeJS version (#212)
* update node version * update workflows versions * bump deps * update tsconfig according to nodejs16
1 parent aaba31a commit ba496a1

File tree

8 files changed

+823
-274
lines changed

8 files changed

+823
-274
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,9 @@ on: [push]
55
env:
66
DOCKER_REPO: ${{ secrets.DOCKER_USERNAME }}/hawk-workers
77

8-
98
jobs:
109
build_and_deploy:
11-
runs-on: ubuntu-18.04
10+
runs-on: ubuntu-20.04
1211
steps:
1312
- name: Checkout repository
1413
uses: actions/checkout@v2

.github/workflows/nodejs.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Use Node.js 10.x
11+
- name: Use Node.js 16.x
1212
uses: actions/setup-node@v1
1313
with:
14-
node-version: 10.x
14+
node-version: 16.x
1515
- run: yarn install
1616
- run: yarn lint

.github/workflows/tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,9 @@ jobs:
88
runs-on: ubuntu-latest
99
steps:
1010
- uses: actions/checkout@v2
11-
- name: Use Node.js 12.x
11+
- name: Use Node.js 16.x
1212
uses: actions/setup-node@v1
1313
with:
14-
node-version: 12.x
14+
node-version: 16.x
1515
- run: yarn install
1616
- run: yarn test

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.18.1-slim as build-stage
1+
FROM node:16.2-slim as build-stage
22

33
RUN apt update
44
RUN apt install git -y

dev.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:14.5-slim
1+
FROM node:16.2-slim
22

33
WORKDIR /usr/src/app
44

stage.Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
FROM node:12.18.1-slim as build-stage
1+
FROM node:16.2-slim as build-stage
22

33
RUN apt update
44
RUN apt install git -y

tsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
"compilerOptions": {
33
/* Basic Options */
44
// "incremental": true, /* Enable incremental compilation */
5-
"target": "es2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
5+
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
66
"module": "commonjs", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
7-
// "lib": [], /* Specify library files to be included in the compilation. */
7+
"lib": ["ES2020"], /* Specify library files to be included in the compilation. */
88
// "allowJs": true, /* Allow javascript files to be compiled. */
99
// "checkJs": true, /* Report errors in .js files. */
1010
// "jsx": "preserve", /* Specify JSX code generation: 'preserve', 'react-native', or 'react'. */

0 commit comments

Comments
 (0)