Skip to content

Commit

Permalink
Update Node.js from v12 to v16 for Apple M1 support (#59)
Browse files Browse the repository at this point in the history
* Update Node.js from v12 to v16

According to the release policy of Node.js,
Node.js v12 reached EOL (end-of-life).

https://nodejs.org/en/about/releases/

I think ruby/setup-ruby is ready to update Node.js to v16
because GitHub Actions runners support v16.

actions/runner#772

* prepare-for-release wiht node 16

* Node16 in Github actions

* Attempt to use node16 in package.json
  • Loading branch information
hannesa2 authored Jul 4, 2022
1 parent 3c92847 commit a8b3137
Show file tree
Hide file tree
Showing 9 changed files with 15 additions and 15 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-linux.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: test install-sdk
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v12.10.0 && npm install && npm ci && npm run build
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v16.15.0 && npm install && npm ci && npm run build
working-directory: install-sdk
- name: test emulator-run-cmd
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v12.10.0 && npm install && npm ci && npm run build
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v16.15.0 && npm install && npm ci && npm run build
working-directory: emulator-run-cmd
- uses: ./install-sdk
name: install sdk
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/test-macos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,10 +6,10 @@ jobs:
steps:
- uses: actions/checkout@v1
- name: test install-sdk
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v12.10.0 && npm install && npm ci && npm run build
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v16.15.0 && npm install && npm ci && npm run build
working-directory: install-sdk
- name: test emulator-run-cmd
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v12.10.0 && npm install && npm ci && npm run build
run: npm config delete prefix && source ~/.nvm/nvm.sh && nvm install v16.15.0 && npm install && npm ci && npm run build
working-directory: emulator-run-cmd
- uses: ./install-sdk
name: install sdk
Expand Down
2 changes: 1 addition & 1 deletion emulator-run-cmd/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,5 +30,5 @@ inputs:
description: 'be verbose'
default: 'false'
runs:
using: 'node12'
using: 'node16'
main: 'lib/main.js'
6 changes: 3 additions & 3 deletions emulator-run-cmd/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion emulator-run-cmd/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"devDependencies": {
"@types/jest": "^24.0.23",
"@types/node": "^12.12.14",
"@types/node": "^16.10.0",
"jest": "^25.5.4",
"jest-circus": "^25.5.4",
"ts-jest": "^25.4.0",
Expand Down
2 changes: 1 addition & 1 deletion install-sdk/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@ inputs:
description: 'do you accept all current Android licenses?'
default: 'yes'
runs:
using: 'node12'
using: 'node16'
main: 'lib/main.js'
6 changes: 3 additions & 3 deletions install-sdk/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion install-sdk/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
},
"devDependencies": {
"@types/jest": "^24.0.13",
"@types/node": "^12.0.4",
"@types/node": "^16.10.0",
"jest": "^25.5.4",
"jest-circus": "^25.5.4",
"ts-jest": "^25.4.0",
Expand Down
2 changes: 1 addition & 1 deletion prepare-for-release.sh
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
set -ex

for i in emulator-run-cmd install-sdk; do
(cd $i && docker run -it -v $(pwd):/opt/app -w /opt/app node:12 bash -c 'npm install && npm run build && npm prune --production' && git add -f node_modules lib)
(cd $i && docker run -it -v $(pwd):/opt/app -w /opt/app node:16 bash -c 'npm install && npm run build && npm prune --production' && git add -f node_modules lib)
done

0 comments on commit a8b3137

Please sign in to comment.