From 2a47b412cf3937542652d5d105357567cb0bdf21 Mon Sep 17 00:00:00 2001 From: Aleksandr Kitov Date: Tue, 16 Jan 2024 11:20:48 +0300 Subject: [PATCH] feat(node): add node@20 support, drop node@14 --- .changeset/famous-windows-press.md | 11 +++++++++ .github/workflows/alpine-node.yml | 23 +++---------------- .github/workflows/nodejs.yml | 2 +- packages/arui-scripts/README.md | 2 +- .../src/configs/app-configs/get-defaults.ts | 2 +- 5 files changed, 17 insertions(+), 23 deletions(-) create mode 100644 .changeset/famous-windows-press.md diff --git a/.changeset/famous-windows-press.md b/.changeset/famous-windows-press.md new file mode 100644 index 00000000..dd660e83 --- /dev/null +++ b/.changeset/famous-windows-press.md @@ -0,0 +1,11 @@ +--- +'arui-scripts': major +--- + +Прекращена поддержка nodejs@14. +Поддерживаемые версии nodejs: `16.20.2, 18.0.0+, 20.0.0+`. + +Базовые образы `alpine-node-nginx` больше не будут публиковаться с тегом `latest`, он остается зафиксированным на версии `14.21.3`. + +Вы можете продолжать использовать `arui-scripts` с nodejs@14, но мы не будем исправлять ошибки, связанные с этой версией nodejs. +Совместимость peer зависимостей не гарантируется. diff --git a/.github/workflows/alpine-node.yml b/.github/workflows/alpine-node.yml index 3f4e4a85..e6820689 100644 --- a/.github/workflows/alpine-node.yml +++ b/.github/workflows/alpine-node.yml @@ -10,35 +10,18 @@ on: env: # version that would be tagged as latest - LATEST_VERSION: 14.21.3 + LATEST_VERSION: 'dont use latest version' # Использование latest версии крайне не желательно, поскольку никак толком не контролирует как именно собирается проект jobs: - - # build node@14 with alpine 3.18 - buildOldNode: - runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Build and push Docker images - uses: docker/build-push-action@v1 - with: - path: packages/alpine-node-nginx/node-14-alpine-3.18/ - username: ${{ secrets.DOCKER_USERNAME }} - password: ${{ secrets.DOCKER_ACCESS_TOKEN }} - repository: alfabankui/nodejs - tags: 14.21.3-alpine3.18 - build: needs: - buildOldNode strategy: matrix: versions: [ - { node: 14.21.3, alpine: 3.18, image: alfabankui/nodejs }, { node: 16.20.2, alpine: 3.18, image: node }, - { node: 18.18.2, alpine: 3.18, image: node }, + { node: 18.19.0, alpine: 3.19, image: node }, + { node: 20.11.0, alpine: 3.19, image: node }, ] runs-on: ubuntu-latest steps: diff --git a/.github/workflows/nodejs.yml b/.github/workflows/nodejs.yml index 85349674..29bc7bf9 100644 --- a/.github/workflows/nodejs.yml +++ b/.github/workflows/nodejs.yml @@ -9,7 +9,7 @@ jobs: strategy: matrix: - node-version: [14.x, 16.x, 18.x] + node-version: [16.x, 18.x, 20.x] steps: - uses: actions/checkout@v1 diff --git a/packages/arui-scripts/README.md b/packages/arui-scripts/README.md index a25010a4..383c1e0a 100644 --- a/packages/arui-scripts/README.md +++ b/packages/arui-scripts/README.md @@ -10,7 +10,7 @@ ARUI-scripts Зависимость | Версия -- | -- -`nodejs` | `14.21.3, 16.20.2, 18.0.0+` +`nodejs` | `16.20.2, 18.0.0+, 20.0.0+` `react` | `16.13.0+` `react-dom` | `16.13.0+` diff --git a/packages/arui-scripts/src/configs/app-configs/get-defaults.ts b/packages/arui-scripts/src/configs/app-configs/get-defaults.ts index 8cdd055c..6ef8061b 100644 --- a/packages/arui-scripts/src/configs/app-configs/get-defaults.ts +++ b/packages/arui-scripts/src/configs/app-configs/get-defaults.ts @@ -36,7 +36,7 @@ export function getDefaultAppConfig(): AppConfigs { // docker compilation configs dockerRegistry: '', - baseDockerImage: 'alfabankui/arui-scripts:latest', + baseDockerImage: 'alfabankui/arui-scripts:16.20.2', nginxRootPath: '/src', runFromNonRootUser: true, removeDevDependenciesDuringDockerBuild: true,