Skip to content

Commit

Permalink
build: upgraded node version from 14 to 16. (Ricochet-Exchange#687)
Browse files Browse the repository at this point in the history
* build: upgraded node version from 14 to 16.

* ci: fixed lighthout node version.
  • Loading branch information
zhyd1997 authored May 28, 2022
1 parent a4ed813 commit c524545
Show file tree
Hide file tree
Showing 9 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build-latest-ct.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Setup NodeJS 14
- name: Setup NodeJS 16
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: check dependencies
run: yarn
- name: Set up Docker Buildx
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/create-update-pr-env.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,10 +35,10 @@ jobs:
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Setup NodeJS 14
- name: Setup NodeJS 16
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16

- name: check dependencies
run: |
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/lighthouse-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,10 +17,10 @@ jobs:
with:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}
- name: Setup NodeJS 14
- name: Setup NodeJS 16
uses: actions/setup-node@v2
with:
node-version: '14'
node-version: 16
- run: yarn install && npm install -g @lhci/cli@0.8.x
- run: yarn build
- name: run lighthouse action
Expand Down
8 changes: 4 additions & 4 deletions .github/workflows/qa.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,10 +28,10 @@ jobs:
ref: ${{github.event.pull_request.head.ref}}
repository: ${{github.event.pull_request.head.repo.full_name}}

- name: Setup NodeJS 14
- name: Setup NodeJS 16
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16

- name: Upgrade to latest npm version
run: npm install -g npm@^8.5.3
Expand Down Expand Up @@ -66,10 +66,10 @@ jobs:
- uses: actions/checkout@v2
with:
ref: 'qa'
- name: Setup NodeJS 14
- name: Setup NodeJS 16
uses: actions/setup-node@v1
with:
node-version: 14
node-version: 16
- name: build
run: yarn install && yarn build
- name: Deploy using fleek
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14
node-version: 16
- run: |
yarn install
- name: Run tests
Expand Down
2 changes: 1 addition & 1 deletion .nvmrc
Original file line number Diff line number Diff line change
@@ -1 +1 @@
14
16
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
FROM node:14-alpine
FROM node:16-alpine

# create directory
RUN mkdir /opt/ricochet-frontend/
Expand Down
4 changes: 2 additions & 2 deletions make.sh
Original file line number Diff line number Diff line change
Expand Up @@ -175,8 +175,8 @@ dev() {
export NVM_DIR="$([ -z "${XDG_CONFIG_HOME-}" ] && printf %s "${HOME}/.nvm" || printf %s "${XDG_CONFIG_HOME}/nvm")"
[ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
cd "$dir/site"
nvm install 14
nvm use 14
nvm install 16
nvm use 16
yarn && yarn start
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
"prettier:check": "prettier --config .prettierrc --check \"src/**/*.{ts,css,html}\""
},
"engines": {
"node": "14"
"node": "16"
},
"eslintConfig": {
"extends": "react-app"
Expand Down

0 comments on commit c524545

Please sign in to comment.