From 98d19132d6be50bc568e619e565c3ca38fcfc474 Mon Sep 17 00:00:00 2001 From: Andrei <168741329+andreiborza@users.noreply.github.com> Date: Mon, 23 Jun 2025 13:53:22 +0200 Subject: [PATCH] feat: Bump to node 20.19.2 (#284) --- .github/workflows/build.yml | 2 +- Dockerfile | 4 ++-- action.yml | 4 ++-- dist/index.js | 2 +- package.json | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 9cc8a7a..7b463a3 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -161,7 +161,7 @@ jobs: needs: docker-build runs-on: ubuntu-latest container: - image: node:18.17 + image: node:20.19.2 steps: - uses: actions/checkout@v4 diff --git a/Dockerfile b/Dockerfile index 7d52626..54e95c5 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,6 +1,6 @@ # The multi stage set up *saves* up image size by avoiding the dev dependencies # required to produce dist/ -FROM node:18-alpine AS builder +FROM node:20-alpine AS builder WORKDIR /app # This layer will invalidate upon new dependencies COPY package.json yarn.lock ./ @@ -12,7 +12,7 @@ RUN export YARN_CACHE_FOLDER="$(mktemp -d)" \ COPY . . RUN yarn build -FROM node:18-alpine AS app +FROM node:20-alpine AS app COPY package.json yarn.lock /action-release/ # On the builder image, we install both types of dependencies rather than # just the production ones. This generates /action-release/node_modules diff --git a/action.yml b/action.yml index 1f0387b..df7495a 100644 --- a/action.yml +++ b/action.yml @@ -148,7 +148,7 @@ runs: INPUT_WORKING_DIRECTORY: ${{ inputs.working_directory }} INPUT_DISABLE_TELEMETRY: ${{ inputs.disable_telemetry }} INPUT_DISABLE_SAFE_DIRECTORY: ${{ inputs.disable_safe_directory }} - uses: docker://ghcr.io/getsentry/action-release-image:master + uses: docker://ghcr.io/getsentry/action-release-image:ab-node-20 # For actions running on macos or windows runners, we use a composite # action approach which allows us to install the arch specific sentry-cli @@ -177,7 +177,7 @@ runs: # setup-node doesn't allow absolute paths, so we can't # just use `github.action_path` to read this out from the `package.json` # any changes to the runtime need to be reflected here - node-version: 18.17.0 + node-version: 20.19.2 - name: Install Sentry CLI v2 if: runner.os == 'macOS' || runner.os == 'Windows' diff --git a/dist/index.js b/dist/index.js index b8c1d45..7aae841 100644 --- a/dist/index.js +++ b/dist/index.js @@ -123593,7 +123593,7 @@ module.exports = JSON.parse('{"eN":{"H":"https://github.com/elastic/require-in-t /***/ ((module) => { "use strict"; -module.exports = JSON.parse('{"name":"action-release","version":"3.1.2","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"all":"yarn run format && yarn run lint && yarn run build && yarn test","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","set-docker-tag":"./scripts/set-docker-tag.sh","set-docker-tag-from-branch":"./scripts/set-docker-tag-from-branch.sh","start":"node dist/index.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^1.11.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.41.1"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^20.8.9","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"18.17.0","yarn":"1.22.4"}}'); +module.exports = JSON.parse('{"name":"action-release","version":"3.1.2","private":true,"description":"GitHub Action for creating a release on Sentry","main":"dist/index.js","scripts":{"all":"yarn run format && yarn run lint && yarn run build && yarn test","build":"ncc build src/main.ts -e @sentry/cli","format":"prettier --write **/*.ts **/*.md","format-check":"prettier --check **/*.ts **/*.md","lint":"eslint src/**/*.ts","set-docker-tag":"./scripts/set-docker-tag.sh","set-docker-tag-from-branch":"./scripts/set-docker-tag-from-branch.sh","start":"node dist/index.js","test":"jest"},"repository":{"type":"git","url":"git+https://github.com/getsentry/action-release.git"},"keywords":["actions","sentry","release"],"author":"Sentry","license":"MIT","dependencies":{"@actions/core":"^1.11.1","@sentry/node":"^8.54.0","@sentry/cli":"^2.41.1"},"devDependencies":{"@types/jest":"^29.5.6","@types/node":"^20.8.9","@typescript-eslint/parser":"^6.9.0","@vercel/ncc":"^0.38.1","eslint":"^8.52.0","eslint-plugin-github":"^4.10.1","eslint-plugin-jest":"^27.4.3","jest":"^29.7.0","jest-circus":"^29.7.0","js-yaml":"^4.1.0","prettier":"^3.0.3","ts-jest":"^29.1.1","typescript":"^5.2.2"},"volta":{"node":"20.19.2","yarn":"1.22.4"}}'); /***/ }) diff --git a/package.json b/package.json index c517370..dcae195 100644 --- a/package.json +++ b/package.json @@ -47,7 +47,7 @@ "typescript": "^5.2.2" }, "volta": { - "node": "18.17.0", + "node": "20.19.2", "yarn": "1.22.4" } }