This repository was archived by the owner on May 20, 2020. It is now read-only.
Commit ced3564 1 parent 40da108 commit ced3564 Copy full SHA for ced3564
File tree 1 file changed +46
-0
lines changed
1 file changed +46
-0
lines changed Original file line number Diff line number Diff line change @@ -18,6 +18,13 @@ references:
18
18
attach_workspace :
19
19
at : *workspace_root
20
20
21
+ filter_version_tag : &filter_version_tag
22
+ tags :
23
+ only :
24
+ - /^v?\d+\.\d+\.\d+(?:-beta\.\d+)?$/
25
+ branches :
26
+ ignore : /.*/
27
+
21
28
jobs :
22
29
build-node-10 :
23
30
executor : circleci-node-10
51
58
- *attach_workspace
52
59
- run : npm test
53
60
61
+ publish :
62
+ executor : circleci-node-10
63
+ steps :
64
+ - *attach_workspace
65
+ - run :
66
+ name : Configure registry.npmjs.org auth token
67
+ command : echo "//registry.npmjs.org/:_authToken=${NPM_AUTH_TOKEN}" > ${HOME}/.npmrc
68
+ - run :
69
+ name : Bump package version
70
+ command : npm version ${CIRCLE_TAG}
71
+ - run :
72
+ name : Publish package to npm
73
+ command : npm publish --access=public
74
+
54
75
workflows :
55
76
version : 2
56
77
@@ -64,3 +85,28 @@ workflows:
64
85
- test-node-10 :
65
86
requires :
66
87
- build-node-10
88
+
89
+ build-test-publish :
90
+ jobs :
91
+ - build-node-8 :
92
+ filters :
93
+ << : *filter_version_tag
94
+ - build-node-10 :
95
+ filters :
96
+ << : *filter_version_tag
97
+ - test-node-8 :
98
+ filters :
99
+ << : *filter_version_tag
100
+ requires :
101
+ - build-node-8
102
+ - test-node-10 :
103
+ filters :
104
+ << : *filter_version_tag
105
+ requires :
106
+ - build-node-10
107
+ - publish :
108
+ filters :
109
+ << : *filter_version_tag
110
+ requires :
111
+ - test-node-8
112
+ - test-node-10
You can’t perform that action at this time.
0 commit comments