Skip to content

Commit

Permalink
Merge pull request #365 from Financial-Times/ACC_1610_node_upgrade
Browse files Browse the repository at this point in the history
Acc 1610 node upgrade
  • Loading branch information
danieleruiz authored May 19, 2022
2 parents 83d57b9 + 3a531ca commit 7481552
Show file tree
Hide file tree
Showing 5 changed files with 284 additions and 423 deletions.
43 changes: 29 additions & 14 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,47 +3,59 @@

references:

container_config_node: &container_config_node
container_config_node:
&container_config_node
working_directory: ~/project/build
docker:
- image: circleci/node:12-browsers
- image: cimg/node:<< parameters.node-version >>-browsers
parameters:
node-version:
default: "16.14"
type: string

workspace_root: &workspace_root
~/project
workspace_root: &workspace_root ~/project

attach_workspace: &attach_workspace
attach_workspace:
&attach_workspace
attach_workspace:
at: *workspace_root

npm_cache_keys: &npm_cache_keys
npm_cache_keys:
&npm_cache_keys
keys:
- v7-dependency-npm-{{ checksum "package.json" }}-
- v7-dependency-npm-{{ checksum "package.json" }}
- v7-dependency-npm-

cache_npm_cache: &cache_npm_cache
cache_npm_cache:
&cache_npm_cache
save_cache:
key: v7-dependency-npm-{{ checksum "package.json" }}-{{ epoch }}
paths:
- ./node_modules/

restore_npm_cache: &restore_npm_cache
restore_npm_cache:
&restore_npm_cache
restore_cache:
<<: *npm_cache_keys

filters_only_main: &filters_only_main
filters_only_main:
&filters_only_main
branches:
only: main

filters_ignore_main: &filters_ignore_main
filters_ignore_main:
&filters_ignore_main
branches:
ignore: main

filters_ignore_tags: &filters_ignore_tags
filters_ignore_tags:
&filters_ignore_tags
tags:
ignore: /.*/

filters_version_tag: &filters_version_tag
filters_version_tag:
&filters_version_tag
tags:
only:
- /^v?\d+\.\d+\.\d+(?:-beta\.\d+)?$/
Expand All @@ -63,7 +75,9 @@ jobs:
- checkout
- run:
name: Checkout next-ci-shared-helpers
command: git clone --depth 1 [email protected]:Financial-Times/next-ci-shared-helpers.git .circleci/shared-helpers
command: git clone --depth 1
[email protected]:Financial-Times/next-ci-shared-helpers.git
.circleci/shared-helpers
- *restore_npm_cache
- node/install-npm:
version: "7"
Expand Down Expand Up @@ -129,7 +143,8 @@ jobs:
- run:
name: shared-helper / helper-install-puppeteer-deps
command: bash .circleci/shared-helpers/helper-install-puppeteer-deps
- run: npx snyk monitor --org=customer-products --project-name=Financial-Times/next-syndication-api
- run: npx snyk monitor --org=customer-products
--project-name=Financial-Times/next-syndication-api
- run:
name: Deploy to production
command: make deploy
Expand Down
Loading

0 comments on commit 7481552

Please sign in to comment.