From 0d8f34ad3330f92cad56e458f688337b4c016446 Mon Sep 17 00:00:00 2001 From: Peter Evans <18365890+peter-evans@users.noreply.github.com> Date: Thu, 30 Nov 2023 14:54:03 +0000 Subject: [PATCH] feat: update action runtime to node 20 (#2340) --- .github/workflows/ci.yml | 2 +- __test__/integration-tests.sh | 2 +- action.yml | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 256825b4a..19215d451 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-node@v4 with: - node-version: 16.x + node-version: 20.x cache: npm - run: npm ci - run: npm run build diff --git a/__test__/integration-tests.sh b/__test__/integration-tests.sh index 5780b57cb..0fcaa544a 100755 --- a/__test__/integration-tests.sh +++ b/__test__/integration-tests.sh @@ -8,7 +8,7 @@ if [[ "$(docker images -q $IMAGE 2> /dev/null)" == "" || $ARG1 == "build" ]]; th echo "Building Docker image $IMAGE ..." cat > Dockerfile << EOF -FROM node:16-alpine +FROM node:20-alpine RUN apk --no-cache add git git-daemon RUN npm install jest jest-environment-jsdom --global WORKDIR /cpr diff --git a/action.yml b/action.yml index 9993f0f5b..e265d0480 100644 --- a/action.yml +++ b/action.yml @@ -84,7 +84,7 @@ outputs: pull-request-head-sha: description: 'The commit SHA of the pull request branch.' runs: - using: 'node16' + using: 'node20' main: 'dist/index.js' branding: icon: 'git-pull-request'