Skip to content

Commit

Permalink
build: Update node runtime version
Browse files Browse the repository at this point in the history
  • Loading branch information
um7a committed Nov 27, 2023
1 parent 391ade9 commit 2ee420a
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/daily_build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@ jobs:
fail-fast: false
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
# We should execute 16.x first. Because only 16.x job updates package.json if necessary.
node-version: [16.x, 14.x]
# We should execute 20.x first. Because only 20.x job updates package.json if necessary.
node-version: [20.x, 18.x]
branch: [main]
steps:
- name: Checkout to ${{ matrix.branch }}
Expand All @@ -36,7 +36,7 @@ jobs:
run: git config --global user.name "github actions"

- name: Update npm packages
if: ${{ matrix.node-version == '16.x' }}
if: ${{ matrix.node-version == '20.x' }}
run: |
cp package.json package.json.old
npm install -g npm-package-updater
Expand Down Expand Up @@ -65,7 +65,7 @@ jobs:
run: npm run build:arm64

- name: Push package.json and package-lock.json if needed
if: ${{ matrix.node-version == '16.x' }}
if: ${{ matrix.node-version == '20.x' }}
run: |
if [[ ! -z $(diff package.json.old package.json) ]]; then
git push origin ${{ matrix.branch }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/node.js.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ jobs:
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x, 14.x]
node-version: [20.x, 18.x]
steps:
- uses: actions/checkout@v2

Expand All @@ -39,7 +39,7 @@ jobs:
run: npm run build:arm64

- name: Commit and push package-lock.json if needed
if: ${{ matrix.node-version == '16.x' && github.event_name == 'push' }}
if: ${{ matrix.node-version == '20.x' && github.event_name == 'push' }}
run: |
if [[ ! -z $(git diff --shortstat package-lock.json) ]]; then
git add package-lock.json
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
- name: Use Node.js
uses: actions/setup-node@v2
with:
node-version: 16.x
node-version: 20.x

- name: check tag name
run: test `echo ${{ github.ref }} | cut -d / -f 3 | cut -d v -f 2` = `node -e "console.log(require('./package.json').version)"`
Expand All @@ -26,7 +26,7 @@ jobs:
strategy:
matrix:
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/
node-version: [16.x]
node-version: [20.x]
steps:
- name: Checkout
uses: actions/checkout@v2
Expand Down

0 comments on commit 2ee420a

Please sign in to comment.