From 80296b4fbaeb08e43a2b957e188b283a20776b3b Mon Sep 17 00:00:00 2001 From: Masaya Suzuki <15100604+massongit@users.noreply.github.com> Date: Fri, 2 Feb 2024 14:41:19 +0900 Subject: [PATCH] Update Node.js to 20 (#1379) --- .github/workflows/action-build.yml | 2 +- .github/workflows/release.yml | 2 +- .github/workflows/tests.yml | 2 +- Dockerfile | 2 +- action.yml | 2 +- package.json | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/action-build.yml b/.github/workflows/action-build.yml index 967e27e7b..bea15c076 100644 --- a/.github/workflows/action-build.yml +++ b/.github/workflows/action-build.yml @@ -28,7 +28,7 @@ jobs: - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' cache: 'yarn' - run: yarn install --frozen-lockfile diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2582f7f63..e9318391a 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Setup Node uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' cache: yarn registry-url: https://registry.npmjs.org diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1f2922805..50cea508e 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -16,7 +16,7 @@ jobs: - uses: actions/checkout@v3 - uses: actions/setup-node@v3 with: - node-version: '16' + node-version: '20' cache: 'yarn' - run: yarn install --frozen-lockfile - run: yarn test diff --git a/Dockerfile b/Dockerfile index efdf2d1d5..da1f816c9 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM node:18.7.0-alpine@sha256:4c8f734f33b4c8bb41c3caf17c61e6828e45cdc39dcc3fd495d0fb3213b33cfe +FROM node:20.11.0-alpine@sha256:9b61ed13fef9ca689326f40c0c0b4da70e37a18712f200b4c66d3b44fd59d98e ARG NODE_ENV=production ENV NODE_ENV=${NODE_ENV} LABEL "repository"="https://github.com/release-drafter/release-drafter" diff --git a/action.yml b/action.yml index 8ad4b1bcb..28e22e943 100644 --- a/action.yml +++ b/action.yml @@ -1,7 +1,7 @@ name: 'Release Drafter' description: 'Drafts your next release notes as pull requests are merged into master.' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: edit-2 diff --git a/package.json b/package.json index 4251705df..8900a5800 100644 --- a/package.json +++ b/package.json @@ -50,7 +50,7 @@ "prettier": "2.7.1" }, "engines": { - "node": ">=16.0.0" + "node": ">=20.0.0" }, "jest": { "testEnvironment": "jest-environment-node",