From ca4f168dae82c5f31ecec9281ac203e24a454c78 Mon Sep 17 00:00:00 2001 From: Tim Fischbach Date: Wed, 3 Jan 2024 12:27:15 +0100 Subject: [PATCH] Use Node 18 in CI Required by postcss-import@16. Webpack 4 for pageflow-paged-react requires `--openssl-legacy-provider` flag (see https://github.com/webpack/webpack/issues/14532#issuecomment-947513562) --- .github/workflows/storybook.yml | 4 ++-- .github/workflows/tests.yml | 8 ++++---- bin/build-packages | 5 ++++- 3 files changed, 10 insertions(+), 7 deletions(-) diff --git a/.github/workflows/storybook.yml b/.github/workflows/storybook.yml index ccb0cbeb94..332be7b77e 100644 --- a/.github/workflows/storybook.yml +++ b/.github/workflows/storybook.yml @@ -82,10 +82,10 @@ jobs: with: ruby-version: 3.2 - - name: Set up Node.js 14 + - name: Set up Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 18 # Dependencies diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 193a6848f4..b79b26e4b2 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -134,10 +134,10 @@ jobs: with: ruby-version: ${{ matrix.ruby-version }} - - name: Use Node.js 14 + - name: Use Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 18 # Dependencies @@ -217,10 +217,10 @@ jobs: restore-keys: | ${{ runner.os }}-yarn- - - name: Set up Node.js 14 + - name: Set up Node.js 18 uses: actions/setup-node@v1 with: - node-version: 14 + node-version: 18 - name: Yarn install run: | diff --git a/bin/build-packages b/bin/build-packages index 2d8982440f..e603956081 100755 --- a/bin/build-packages +++ b/bin/build-packages @@ -6,4 +6,7 @@ set -ex rm -f ./entry_types/scrolled/package/frontend/* yarn run build -(cd ./entry_types/paged/packages/pageflow-paged-react; yarn install --frozen-lockfile; yarn run build) + +(cd ./entry_types/paged/packages/pageflow-paged-react; + yarn install --frozen-lockfile; + NODE_OPTIONS=--openssl-legacy-provider yarn run build)