@financial-times/n-myft-ui 25.0.1 → 27.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,7 +5,11 @@ references:
5
5
  container_config_node: &container_config_node
6
6
  working_directory: ~/project/build
7
7
  docker:
8
- - image: circleci/node:12-browsers
8
+ - image: cimg/node:<< parameters.node-version >>-browsers
9
+ parameters:
10
+ node-version:
11
+ default: "16.14"
12
+ type: string
9
13
 
10
14
  workspace_root: &workspace_root ~/project
11
15
 
@@ -63,17 +67,16 @@ jobs:
63
67
  steps:
64
68
  - checkout
65
69
  - node/install-npm:
66
- version: "7"
70
+ version: "7"
67
71
  - run:
68
72
  name: Checkout next-ci-shared-helpers
69
- command: git clone --depth 1 git@github.com:Financial-Times/next-ci-shared-helpers.git .circleci/shared-helpers
73
+ command: git clone --depth 1
74
+ git@github.com:Financial-Times/next-ci-shared-helpers.git
75
+ .circleci/shared-helpers
70
76
  - *restore_npm_cache
71
77
  - run:
72
78
  name: Install project dependencies
73
79
  command: make install
74
- - run:
75
- name: shared-helper / npm-update
76
- command: .circleci/shared-helpers/helper-npm-update
77
80
  - run:
78
81
  name: shared-helper / generate-build-state-artifacts
79
82
  command: .circleci/shared-helpers/helper-generate-build-state-artifacts
@@ -111,7 +114,8 @@ jobs:
111
114
  - run:
112
115
  name: shared-helper / npm-store-auth-token
113
116
  command: .circleci/shared-helpers/helper-npm-store-auth-token
114
- - run: npx snyk monitor --org=customer-products --project-name=Financial-Times/n-myft-ui
117
+ - run: npx snyk monitor --org=customer-products
118
+ --project-name=Financial-Times/n-myft-ui
115
119
  - run:
116
120
  name: shared-helper / npm-version-and-publish-public
117
121
  command: .circleci/shared-helpers/helper-npm-version-and-publish-public
@@ -135,32 +139,49 @@ workflows:
135
139
  filters:
136
140
  <<: *filters_ignore_tags
137
141
  <<: *filters_ignore_gh_pages
142
+ name: build-v<< matrix.node-version >>
143
+ matrix:
144
+ parameters:
145
+ node-version: ["16.14", "14.19"]
138
146
  - test:
139
147
  filters:
140
148
  <<: *filters_ignore_tags
141
- <<: *filters_ignore_gh_pages
142
149
  requires:
143
- - build
150
+ - build-v<< matrix.node-version >>
151
+ name: test-v<< matrix.node-version >>
152
+ matrix:
153
+ parameters:
154
+ node-version: ["16.14", "14.19"]
144
155
  - deploy:
145
156
  filters:
146
157
  <<: *filters_only_main
147
158
  requires:
148
- - build
159
+ - build-v16.14
149
160
  build-test-publish:
150
161
  jobs:
151
162
  - build:
152
163
  filters:
153
164
  <<: *filters_version_tag
165
+ <<: *filters_ignore_gh_pages
166
+ name: build-v<< matrix.node-version >>
167
+ matrix:
168
+ parameters:
169
+ node-version: ["16.14", "14.19"]
154
170
  - test:
155
171
  filters:
156
172
  <<: *filters_version_tag
157
173
  requires:
158
- - build
174
+ - build-v<< matrix.node-version >>
175
+ name: test-v<< matrix.node-version >>
176
+ matrix:
177
+ parameters:
178
+ node-version: ["16.14", "14.19"]
159
179
  - publish:
180
+ context: npm-publish-token
160
181
  filters:
161
182
  <<: *filters_version_tag
162
183
  requires:
163
- - test
184
+ - test-v16.14
164
185
 
165
186
  nightly:
166
187
  triggers:
@@ -171,10 +192,18 @@ workflows:
171
192
  jobs:
172
193
  - build:
173
194
  context: next-nightly-build
195
+ name: build-v<< matrix.node-version >>
196
+ matrix:
197
+ parameters:
198
+ node-version: ["16.14", "14.19"]
174
199
  - test:
175
200
  requires:
176
- - build
201
+ - build-v<< matrix.node-version >>
177
202
  context: next-nightly-build
203
+ name: test-v<< matrix.node-version >>
204
+ matrix:
205
+ parameters:
206
+ node-version: ["16.14", "14.19"]
178
207
 
179
208
  notify:
180
209
  webhooks:
package/.nvmrc CHANGED
@@ -1 +1 @@
1
- 12
1
+ 16
package/Makefile CHANGED
@@ -46,4 +46,3 @@ test:
46
46
  make test-unit
47
47
  make test-build
48
48
  make a11y
49
- jest
package/README.md CHANGED
@@ -38,3 +38,7 @@ make demo
38
38
  ```
39
39
 
40
40
  View the demo on `localhost:5005`
41
+
42
+ ## Unstable versions
43
+
44
+ v24, v25, v26 has JSX migration code. They are not stable therefore v27 is released. It is to remove JSX and rollback to handlebars. Please use ^v27.