From 7c44956049f1145ef91bed2f847be6ac6e75c4d4 Mon Sep 17 00:00:00 2001 From: corneliu-petrescu <156085781+corneliu-petrescu@users.noreply.github.com> Date: Fri, 22 Mar 2024 16:32:57 +0200 Subject: [PATCH] feat: revert to node18 * feat: revert to node18 --- .circleci/config.yml | 2 +- Dockerfile | 6 +++--- package-lock.json | 2 +- package.json | 2 +- scripts/build-npm.bash | 3 ++- 5 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6839245a..abfb6bc9 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -6,7 +6,7 @@ orbs: defaults: &defaults resource_class: small docker: - - image: cimg/node:20.11 + - image: cimg/node:18.18 working_directory: ~/sweater-comb commands: diff --git a/Dockerfile b/Dockerfile index a43a0a0e..254087a6 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,18 +1,18 @@ -FROM node:20.11-alpine AS build-env +FROM node:18.18.2-alpine3.18 AS build-env WORKDIR /sweater-comb COPY ["package.json", "package-lock.json", "./"] RUN npm ci COPY . . RUN npm run build -FROM node:20.11-alpine AS clean-env +FROM node:18.18.2-alpine3.18 AS clean-env COPY --from=build-env /sweater-comb/build/ /sweater-comb/ COPY --from=build-env /sweater-comb/babel.config.js /sweater-comb/ COPY --from=build-env /sweater-comb/package*.json /sweater-comb/ WORKDIR /sweater-comb RUN npm install --production -FROM node:20.11-alpine +FROM node:18.18.2-alpine3.18 ENV NODE_ENV production COPY --from=clean-env /sweater-comb/ /sweater-comb/ WORKDIR /sweater-comb diff --git a/package-lock.json b/package-lock.json index 5a1d560c..af492dde 100644 --- a/package-lock.json +++ b/package-lock.json @@ -52,7 +52,7 @@ "typescript": "^4.4.4" }, "engines": { - "node": ">=20" + "node": ">=16" } }, "node_modules/@aashutoshrathi/word-wrap": { diff --git a/package.json b/package.json index f314ff87..61701c28 100644 --- a/package.json +++ b/package.json @@ -9,7 +9,7 @@ "/schemas" ], "engines": { - "node": ">=20" + "node": ">=18" }, "scripts": { "test": "jest --colors", diff --git a/scripts/build-npm.bash b/scripts/build-npm.bash index 65c4253b..6fbbd372 100755 --- a/scripts/build-npm.bash +++ b/scripts/build-npm.bash @@ -11,5 +11,6 @@ npm pack export GITHUB_TOKEN=${GITHUB_TOKEN:-$GH_TOKEN} if [[ -n "$GITHUB_TOKEN" && -n "$NPM_TOKEN" ]]; then - npx "semantic-release@23" + # fix dependency at 22.0.12 untill we find workaround for node20 requirement + npx "semantic-release@22.0.12" fi