Skip to content

Commit ce73d91

Browse files
committed
ci: 20.18.0+
Signed-off-by: Jan Kowalleck <[email protected]>
1 parent 8dc54dd commit ce73d91

File tree

2 files changed

+6
-26
lines changed

2 files changed

+6
-26
lines changed

.github/workflows/nodejs.yml

Lines changed: 5 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ concurrency:
2020

2121
env:
2222
REPORTS_DIR: CI_reports
23-
NODE_ACTIVE_LTS: "20" # https://nodejs.org/en/about/releases/
23+
NODE_ACTIVE_LTS: "22" # https://nodejs.org/en/about/releases/
2424
TESTS_REPORTS_ARTIFACT: tests-reports
2525

2626
jobs:
@@ -83,12 +83,10 @@ jobs:
8383
node-version:
8484
# action based on https://github.com/actions/node-versions/releases
8585
# see also: https://nodejs.org/en/about/previous-releases
86-
- "22.4" # current -- pinned for https://github.com/npm/cli/issues/7666
87-
- "20" # active LTS
88-
- "18"
89-
- '16'
90-
- "14"
91-
- "14.0.0" # lowest supported
86+
- "23" # current
87+
- "22" # active LTS
88+
- "20"
89+
- "20.18.0" # lowest supported
9290
steps:
9391
- name: Checkout
9492
# see https://github.com/actions/checkout
@@ -114,25 +112,7 @@ jobs:
114112
shell: bash
115113
run: |
116114
set -ex
117-
dep_constraints=''
118115
dev_requirements='c8 jest jest-junit imurmurhash fast-glob'
119-
# as long as npm cannot auto-resolve engine-constraints, we need to help here
120-
case '${{ matrix.node-version }}' in
121-
'14')
122-
dep_constraints='normalize-package-data@^5'
123-
;;
124-
'14.0.0')
125-
dep_constraints='normalize-package-data@^3'
126-
dev_requirements='c8@^8 jest@^26 jest-junit imurmurhash fast-glob'
127-
# cannot run snapshot-compare with old versions ...
128-
rm -rf tests/integration/__snapshots__/
129-
;;
130-
esac
131-
## !! dont install all the dev-packages, especially since some are not runnable on node 14.0.0
132-
if [[ -n "$dep_constraints" ]]
133-
then
134-
npm add --ignore-scripts --omit=peer --omit=dev --only=prod --production --loglevel=silly --save $dep_constraints
135-
fi
136116
npm i --ignore-scripts --omit=peer --omit=dev --only=prod --production --loglevel=silly
137117
## rebuild deps for which scripts were ignored, or partially installed - since "ignore-scripts" was used
138118
npm rebuild --loglevel=silly libxmljs2 || npm uninstall --no-save libxmljs2 || true

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ env:
3434
REPORTS_DIR: CI_reports
3535
PACKED_DIR: CI_packed
3636
PACKED_ARTIFACT: packed
37-
NODE_ACTIVE_LTS: "20"
37+
NODE_ACTIVE_LTS: "22"
3838

3939
jobs:
4040
bump:

0 commit comments

Comments
 (0)