File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11version : 2
2+
3+ defaults :
4+ working_directory : ~/repo
5+ docker :
6+ - image : circleci/node:8.9.1
7+
28jobs :
39 build :
4- docker :
5- - image : circleci/node:7.10
6- working_directory : ~/repo
710 steps :
811 - checkout
912 - restore_cache :
@@ -24,21 +27,19 @@ jobs:
2427 JEST_JUNIT_OUTPUT : " reports/junit/js-test-results.xml"
2528 - store_test_results :
2629 path : reports
30+ - persist_to_workspace :
31+ root : ~/repo
32+ paths : .
2733 deploy :
28- docker :
29- - image : circleci/node:7.10
3034 steps :
31- - checkout
32- - restore_cache :
33- keys :
34- - v1-dependencies-{{ checksum "package.json" }}
35- - v1-dependencies-
36- - run : npm install
37- - save_cache :
38- paths :
39- - node_modules
40- key : v1-dependencies-{{ checksum "package.json" }}
41- - run : npm publish
35+ - attach_workspace :
36+ at : ~/repo
37+ - run :
38+ name : Authenticate with registry
39+ command : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc
40+ - run :
41+ name : Publish package
42+ command : npm publish
4243workflows :
4344 version : 2
4445 build-and-deploy :
You can’t perform that action at this time.
0 commit comments