Skip to content

Commit 2da4f1a

Browse files
authored
Merge pull request #202 from Financial-Times/nori/upgrade-node
Update to Node 18
2 parents 0a3b3d1 + eabb5ce commit 2da4f1a

File tree

3 files changed

+19
-32
lines changed

3 files changed

+19
-32
lines changed

.circleci/config.yml

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33

44
references:
55

6-
container_config_node:
7-
&container_config_node
6+
container_config_node: &container_config_node
87
working_directory: ~/project/build
98
docker:
109
- image: cimg/node:<< parameters.node-version >>-browsers
@@ -15,47 +14,39 @@ references:
1514

1615
workspace_root: &workspace_root ~/project
1716

18-
attach_workspace:
19-
&attach_workspace
17+
attach_workspace: &attach_workspace
2018
attach_workspace:
2119
at: *workspace_root
2220

23-
npm_cache_keys:
24-
&npm_cache_keys
21+
npm_cache_keys: &npm_cache_keys
2522
keys:
2623
- v6-dependency-npm-{{ checksum "package.json" }}-
2724
- v6-dependency-npm-{{ checksum "package.json" }}
2825
- v6-dependency-npm-
2926

30-
cache_npm_cache:
31-
&cache_npm_cache
27+
cache_npm_cache: &cache_npm_cache
3228
save_cache:
3329
key: v3-dependency-npm-{{ checksum "package.json" }}-{{ epoch }}
3430
paths:
3531
- ./node_modules/
3632

37-
restore_npm_cache:
38-
&restore_npm_cache
33+
restore_npm_cache: &restore_npm_cache
3934
restore_cache:
4035
<<: *npm_cache_keys
4136

42-
filters_only_main:
43-
&filters_only_main
37+
filters_only_main: &filters_only_main
4438
branches:
4539
only: main
4640

47-
filters_ignore_main:
48-
&filters_ignore_main
41+
filters_ignore_main: &filters_ignore_main
4942
branches:
5043
ignore: main
5144

52-
filters_ignore_tags:
53-
&filters_ignore_tags
45+
filters_ignore_tags: &filters_ignore_tags
5446
tags:
5547
ignore: /.*/
5648

57-
filters_version_tag:
58-
&filters_version_tag
49+
filters_version_tag: &filters_version_tag
5950
tags:
6051
only:
6152
- /^v?\d+\.\d+\.\d+(?:-beta\.\d+)?$/
@@ -76,11 +67,9 @@ jobs:
7667
- run:
7768
name: Checkout next-ci-shared-helpers
7869
command: git clone --depth 1
79-
git@github.com:Financial-Times/next-ci-shared-helpers.git
80-
.circleci/shared-helpers
70+
git@github.com:Financial-Times/next-ci-shared-helpers.git --branch
71+
unpin-heroku .circleci/shared-helpers
8172
- *restore_npm_cache
82-
- node/install-npm:
83-
version: "7.20.2"
8473
- run:
8574
name: Install project dependencies
8675
command: make install
@@ -143,14 +132,14 @@ workflows:
143132
name: build-v<< matrix.node-version >>
144133
matrix:
145134
parameters:
146-
node-version: [ "16.14", "18.16" ]
135+
node-version: [ "16.20", "18.16" ]
147136
- test:
148137
requires:
149138
- build-v<< matrix.node-version >>
150139
name: test-v<< matrix.node-version >>
151140
matrix:
152141
parameters:
153-
node-version: [ "16.14", "18.16" ]
142+
node-version: [ "16.20", "18.16" ]
154143

155144
build-test-publish:
156145
when:
@@ -165,7 +154,7 @@ workflows:
165154
name: build-v<< matrix.node-version >>
166155
matrix:
167156
parameters:
168-
node-version: [ "16.14", "18.16" ]
157+
node-version: [ "16.20", "18.16" ]
169158
- test:
170159
filters:
171160
<<: *filters_version_tag
@@ -174,13 +163,13 @@ workflows:
174163
name: test-v<< matrix.node-version >>
175164
matrix:
176165
parameters:
177-
node-version: [ "16.14", "18.16" ]
166+
node-version: [ "16.20", "18.16" ]
178167
- publish:
179168
context: npm-publish-token
180169
filters:
181170
<<: *filters_version_tag
182171
requires:
183-
- test-v16.14
172+
- test-v18.16
184173

185174
nightly:
186175
when:
@@ -197,12 +186,12 @@ workflows:
197186
name: build-v<< matrix.node-version >>
198187
matrix:
199188
parameters:
200-
node-version: [ "16.14", "18.16" ]
189+
node-version: [ "16.20", "18.16" ]
201190
- test:
202191
requires:
203192
- build-v<< matrix.node-version >>
204193
context: next-nightly-build
205194
name: test-v<< matrix.node-version >>
206195
matrix:
207196
parameters:
208-
node-version: [ "16.14", "18.16" ]
197+
node-version: [ "16.20", "18.16" ]

package-lock.json

Lines changed: 0 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,7 @@
88
},
99
"scripts": {
1010
"test": "make test",
11-
"prepare": "npx snyk protect || npx snyk protect -d || true",
12-
"preinstall": "[ \"$INIT_CWD\" != \"$PWD\" ] || npm_config_yes=true npx check-engine"
11+
"prepare": "npx snyk protect || npx snyk protect -d || true"
1312
},
1413
"repository": {
1514
"type": "git",

0 commit comments

Comments
 (0)