From 0cc9d81849435b03f4a5f18c0792fc2c3198d315 Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Tue, 9 Apr 2024 11:52:46 +0900 Subject: [PATCH 1/2] chore: upgrade node.js to `20` - to resolve warning below: > Add assignee to PR > Node.js 16 actions are deprecated. Please update the following actions > to use Node.js 20: technote-space/assign-author@v1. For more > information see: > https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/. - `yarn cover` succeeded on Node.js `20.12.1` --- .node-version | 1 + action.yml | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 .node-version diff --git a/.node-version b/.node-version new file mode 100644 index 00000000..bc78e9f2 --- /dev/null +++ b/.node-version @@ -0,0 +1 @@ +20.12.1 diff --git a/action.yml b/action.yml index cb81fe65..8031e24b 100644 --- a/action.yml +++ b/action.yml @@ -15,5 +15,5 @@ branding: color: 'orange' runs: - using: node16 + using: node20 main: lib/main.js From 177424eaa3ba12044fa8e4b0a251a2204c9f12a4 Mon Sep 17 00:00:00 2001 From: Akira Hayashi Date: Tue, 9 Apr 2024 11:54:07 +0900 Subject: [PATCH 2/2] chore: upgrade node.js on ci to follow project config --- .github/workflows/ci.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c4317e73..6e6466c3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -30,7 +30,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: yarn if: env.RUNNING - name: Install Package dependencies @@ -84,7 +84,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: yarn if: env.RUNNING - name: Install Package dependencies @@ -113,7 +113,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 cache: yarn - uses: technote-space/load-config-action@v1 @@ -172,14 +172,14 @@ jobs: - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 registry-url: https://registry.npmjs.org/ cache: yarn if: env.RUNNING && matrix.target == 'npm' - name: Setup Node.js uses: actions/setup-node@v3 with: - node-version: 16 + node-version: 20 registry-url: https://npm.pkg.github.com cache: yarn if: env.RUNNING && matrix.target == 'gpr'