File tree Expand file tree Collapse file tree 1 file changed +29
-19
lines changed Expand file tree Collapse file tree 1 file changed +29
-19
lines changed Original file line number Diff line number Diff line change 4
4
#
5
5
version : 2
6
6
jobs :
7
- deploy :
8
- docker :
9
- # specify the version you desire here
10
- - image : circleci/node:8.11.2
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
- working_directory : ~/repo
17
- steps :
18
- - attach_workspace :
19
- at : ~/repo
20
- - run :
21
- name : Authenticate with registry
22
- command : echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
23
- - run :
24
- name : Publish package
25
- command : npm publish
26
7
build :
8
+ filters :
9
+ tags :
10
+ only : /^v.*/
27
11
docker :
28
12
# specify the version you desire here
29
13
- image : circleci/node:8.11.2
54
38
55
39
# run build!
56
40
- run : yarn build
41
+ deploy :
42
+ requires :
43
+ - build
44
+ filters :
45
+ tags :
46
+ only : /^v.*/
47
+ branches :
48
+ ignore : /.*/
49
+ docker :
50
+ # specify the version you desire here
51
+ - image : circleci/node:8.11.2
52
+
53
+ # Specify service dependencies here if necessary
54
+ # CircleCI maintains a library of pre-built images
55
+ # documented at https://circleci.com/docs/2.0/circleci-images/
56
+ # - image: circleci/mongo:3.4.4
57
+ working_directory : ~/repo
58
+ steps :
59
+ - attach_workspace :
60
+ at : ~/repo
61
+ - run :
62
+ name : Authenticate with registry
63
+ command : echo "//registry.npmjs.org/:_authToken=$npm_TOKEN" > ~/repo/.npmrc
64
+ - run :
65
+ name : Publish package
66
+ command : npm publish
You can’t perform that action at this time.
0 commit comments