Skip to content

Commit

Permalink
deps: use a fixed node.js version to prevent build issues with unknow…
Browse files Browse the repository at this point in the history
…n versions (#1208)

* fixed to node.js 16.16.0 including npm 8.11.0
* docs: migration note for using a fixed Node.js 16.16.0 with npm 8.11.0 since PWA version 2.4.1
  • Loading branch information
shauke authored Jul 21, 2022
1 parent 62718e9 commit ee33f6d
Show file tree
Hide file tree
Showing 9 changed files with 38 additions and 16 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/automated-upgrade.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
schedule:
- cron: '0 0 * * 1'

env:
NODE_VERSION: 16.16.0

jobs:
CancelPrevious:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -39,7 +42,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Create Upgrade Branch
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/dead-code.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ on:
# every sunday at midnight
- cron: '0 0 * * 0'

env:
NODE_VERSION: 16.16.0

jobs:
TestBed:
runs-on: ubuntu-latest
Expand All @@ -18,7 +21,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ on:
- 'docs/**'

env:
NODE_VERSION: 16.16.0
ICM_BASE_URL: http://pwa-review.northeurope.cloudapp.azure.com:8081

jobs:
Expand All @@ -35,7 +36,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down Expand Up @@ -82,7 +83,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down Expand Up @@ -112,7 +113,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down Expand Up @@ -140,7 +141,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ on:
pull_request:
types: [opened, synchronize]

env:
NODE_VERSION: 16.16.0

jobs:
Docs:
runs-on: ubuntu-latest
Expand All @@ -19,7 +22,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down
7 changes: 4 additions & 3 deletions .github/workflows/integration.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ on:
- 'docs/**'

env:
ICM_BASE_URL: http://pwa-review.northeurope.cloudapp.azure.com:8081
NODE_VERSION: 16.16.0
NODE_OPTIONS: --max_old_space_size=8192
ICM_BASE_URL: http://pwa-review.northeurope.cloudapp.azure.com:8081

jobs:
CancelPrevious:
Expand All @@ -38,7 +39,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down Expand Up @@ -69,7 +70,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Download Build Output
Expand Down
5 changes: 4 additions & 1 deletion .github/workflows/updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ on:
schedule:
- cron: '0 0 * * *'

env:
NODE_VERSION: 16.16.0

jobs:
Updates:
runs-on: ubuntu-latest
Expand All @@ -19,7 +22,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand Down
9 changes: 5 additions & 4 deletions .github/workflows/windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
- 'docs/**'

env:
NODE_VERSION: 16.16.0
NODE_OPTIONS: --max_old_space_size=8192
JEST_MAX_WORKERS: 1
CI: false
Expand Down Expand Up @@ -44,7 +45,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Install root dependencies
Expand All @@ -64,7 +65,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- uses: 1arp/create-a-file-action@0.2
Expand Down Expand Up @@ -94,7 +95,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Run developer workflow
Expand All @@ -110,7 +111,7 @@ jobs:
- name: Use Node.js 16
uses: actions/setup-node@v2
with:
node-version: 16
node-version: ${{ env.NODE_VERSION }}
cache: npm

- name: Run developer workflow
Expand Down
4 changes: 3 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ kb_everyone

**required Intershop Commerce Management version: 7.10.38.0-LTS**

**required/tested Node.js version: 16.16.0 LTS (including npm 8.11.0)**

### Bug Fixes

- dependencies and package-lock fixes (#1182) ([5f22ccc](https://github.com/intershop/intershop-pwa/commit/5f22ccc))
Expand Down Expand Up @@ -121,7 +123,7 @@ kb_everyone

**required Intershop Commerce Management version: 7.10.38.0-LTS**

**required/tested Node.js version: 16.14.2 - LTS (including npm 8.5.0)**
**required/tested Node.js version: 16.14.2 LTS (including npm 8.5.0)**

### Features

Expand Down
5 changes: 5 additions & 0 deletions docs/guides/migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,11 @@ kb_sync_latest_only

## 2.4 to 3.0

With the 2.4.1 Hotfix we introduced a more fixed Node.js version handling to the version used and tested by us.
We set Node.js 16.16.0 and npm 8.11.0 as our application runtime and package management versions.
This is supposed to prevent unexpected build issues in the future but requires manual updating of Node.js to newer versions if tested successfully.
Other Node.js versions might still work but you might get warnings regarding the projects recommended settings.

The Intershop PWA 3.0 release includes a Jest Update to version 28, see also https://jestjs.io/docs/upgrading-to-jest28.
The jest-marbles package has been replaced by jasmine-marbles.

Expand Down

0 comments on commit ee33f6d

Please sign in to comment.