1+ # Javascript Node CircleCI 2.0 configuration file
2+ #
3+ # Check https://circleci.com/docs/2.0/language-javascript/ for more details
4+ #
5+ version : 2
6+ jobs :
7+ build:lib :
8+ docker :
9+ # specify the version you desire here
10+ - image : circleci/node:8.12.0
11+
12+ # Specify service dependencies here if necessary
13+ # CircleCI maintains a library of pre-built images
14+ # documented at https://circleci.com/docs/2.0/circleci-images/
15+ # - image: circleci/mongo:3.4.4
16+
17+ working_directory : ~/repo
18+
19+ steps :
20+ - checkout
21+
22+ # Download and cache dependencies
23+ - restore_cache :
24+ keys :
25+ - v1-dependencies-{{ checksum "package.json" }}
26+ # fallback to using the latest cache if no exact match is found
27+ - v1-dependencies-
28+
29+ - run : npm config set '@bit:registry' https://node.bit.dev && npm install
30+
31+ - save_cache :
32+ paths :
33+ - node_modules
34+ key : v1-dependencies-{{ checksum "package.json" }}
35+
36+ # run build:lib!
37+ - run : npm run build:lib
38+ build:bit :
39+ docker :
40+ # specify the version you desire here
41+ - image : circleci/node:8.12.0
42+
43+ # Specify service dependencies here if necessary
44+ # CircleCI maintains a library of pre-built images
45+ # documented at https://circleci.com/docs/2.0/circleci-images/
46+ # - image: circleci/mongo:3.4.4
47+
48+ working_directory : ~/repo
49+
50+ steps :
51+ - checkout
52+
53+ # Download and cache dependencies
54+ - restore_cache :
55+ keys :
56+ - v1-dependencies-{{ checksum "package.json" }}
57+ # fallback to using the latest cache if no exact match is found
58+ - v1-dependencies-
59+
60+ - run : npm config set '@bit:registry' https://node.bit.dev
61+ - run : npm install && sudo npm i bit-bin -g
62+ - run : bit config set analytics_reporting false && bit config set error_reporting false && bit config set user.token ${BIT_TOKEN}
63+ - run : bit import
64+
65+ - save_cache :
66+ paths :
67+ - node_modules
68+ key : v1-dependencies-{{ checksum "package.json" }}
69+
70+ # run build:lib!
71+ - run : npm run build:bit
72+
73+ workflows :
74+ version : 2
75+ build:lib_and_build:bit :
76+ jobs :
77+ - build:lib
78+ - build:bit
0 commit comments