Skip to content

Commit 3eac5ab

Browse files
committed
Follow their example this time.
1 parent ef04b84 commit 3eac5ab

1 file changed

Lines changed: 17 additions & 16 deletions

File tree

.circleci/config.yml

Lines changed: 17 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,12 @@
11
version: 2
2+
3+
defaults:
4+
working_directory: ~/repo
5+
docker:
6+
- image: circleci/node:8.9.1
7+
28
jobs:
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
4243
workflows:
4344
version: 2
4445
build-and-deploy:

0 commit comments

Comments
 (0)