11defaults : &defaults
2- working_directory : ~/dynamic-config
3- docker :
4- - image : circleci/node:8.9.4
2+ working_directory : ~/feature-flags
3+
4+ helpers :
5+ install_node_8 : &install_node_8
6+ run :
7+ name : Install Node 8
8+ command : |
9+ set +e
10+ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
11+ export NVM_DIR="/opt/circleci/.nvm"
12+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
13+ nvm install 8
14+ nvm alias default 8
15+ # Each step uses the same `$BASH_ENV`, so need to modify it
16+ echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
17+ echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
18+
19+ install_node_10 : &install_node_10
20+ run :
21+ name : Install Node 10
22+ command : |
23+ set +e
24+ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.5/install.sh | bash
25+ export NVM_DIR="/opt/circleci/.nvm"
26+ [ -s "$NVM_DIR/nvm.sh" ] && \. "$NVM_DIR/nvm.sh"
27+ nvm install 10
28+ nvm alias default 10
29+ # Each step uses the same `$BASH_ENV`, so need to modify it
30+ echo 'export NVM_DIR="/opt/circleci/.nvm"' >> $BASH_ENV
31+ echo "[ -s \"$NVM_DIR/nvm.sh\" ] && . \"$NVM_DIR/nvm.sh\"" >> $BASH_ENV
532
633version : 2
734executorType : machine
835jobs :
9- test_node_6 :
36+ test_node_8 :
1037 << : *defaults
11- docker :
12- - image : circleci/node:6.12.3
38+ - *install_node_8
1339 steps :
1440 - checkout
1541 - run :
@@ -19,10 +45,11 @@ jobs:
1945 name : Run Test Suite
2046 command : npm test
2147
22- test_node_8 :
48+ test_node_10 :
2349 << : *defaults
2450 steps :
2551 - checkout
52+ - *install_node_10
2653 - run :
2754 name : Install NPM Dependencies
2855 command : npm install
3461 << : *defaults
3562 steps :
3663 - checkout
64+ - *install_node_8
3765 - run :
3866 name : Generate .npmrc File
3967 command : ' echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
5179 << : *defaults
5280 steps :
5381 - checkout
82+ - *install_node_8
5483 - run :
5584 name : Generate .npmrc File
5685 command : ' echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc'
@@ -68,20 +97,20 @@ workflows:
6897 version : 2
6998 build_publish :
7099 jobs :
71- - test_node_6 :
100+ - test_node_8 :
72101 filters :
73102 tags :
74103 only : /.*/
75104
76- - test_node_8 :
105+ - test_node_10 :
77106 filters :
78107 tags :
79108 only : /.*/
80109
81110 - publish :
82111 requires :
83- - test_node_6
84112 - test_node_8
113+ - test_node_10
85114 filters :
86115 tags :
87116 only : /^(v){1}[0-9]+(\.[0-9]+){2}$/
@@ -90,8 +119,8 @@ workflows:
90119
91120 - publish_next :
92121 requires :
93- - test_node_6
94122 - test_node_8
123+ - test_node_10
95124 filters :
96125 tags :
97126 only : /^(v){1}[0-9]+(\.[0-9]+){2}(-)[0-9]+$/
0 commit comments