Skip to content

Commit

Permalink
fix: upgrade node and pin lerna version in circleci (#1002)
Browse files Browse the repository at this point in the history
Co-authored-by: Justin Shih <jushih@amazon.com>
  • Loading branch information
Jshhhh and Justin Shih committed May 2, 2023
1 parent 2754349 commit 2c70073
Showing 1 changed file with 8 additions and 7 deletions.
15 changes: 8 additions & 7 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
version: 2.1

orbs:
node: circleci/node@4.7.0
node: circleci/node@5.1.0

jobs:
install:
docker:
- image: cimg/node:16.10
- image: cimg/node:16.14
steps:
- checkout
- run: sudo npm install -g lerna@6.4.1
- restore_node_modules
- node/install-packages:
pkg-manager: npm
Expand All @@ -25,7 +26,7 @@ jobs:

style:
docker:
- image: cimg/node:16.10
- image: cimg/node:16.14
steps:
- checkout
- restore_node_modules
Expand All @@ -44,7 +45,7 @@ jobs:
build:
docker:
- image: cimg/node:16.10
- image: cimg/node:16.14
steps:
- checkout
- restore_node_modules
Expand All @@ -58,7 +59,7 @@ jobs:

unit-test:
docker:
- image: cimg/node:16.10
- image: cimg/node:16.14
resource_class: large
steps:
- checkout
Expand All @@ -72,7 +73,7 @@ jobs:

publish:
docker:
- image: cimg/node:16.10
- image: cimg/node:16.14
steps:
- checkout
- restore_node_modules
Expand Down Expand Up @@ -120,7 +121,7 @@ commands:
steps:
- run:
name: Combine package-lock.json files to single file
command: npx lerna la -a | awk -F packages '{gsub("\\(PRIVATE\\)", "");gsub(" ", "");printf "\"packages%s/package-lock.json\" ", $2}' | xargs cat > << parameters.filename >>
command: npx lerna@6.4.1 la -a | awk -F packages '{gsub("\\(PRIVATE\\)", "");gsub(" ", "");printf "\"packages%s/package-lock.json\" ", $2}' | xargs cat > << parameters.filename >>

restore_node_modules:
description: 'Restore node_modules cache using concatenated package-lock.'
Expand Down

0 comments on commit 2c70073

Please sign in to comment.