File tree 1 file changed +37
-5
lines changed
1 file changed +37
-5
lines changed Original file line number Diff line number Diff line change 1
1
version : 2
2
- jobs :
3
- build :
4
- docker :
5
- - image : circleci/node:10
6
2
7
- working_directory : ~/skycons
3
+ defaults : &defaults
4
+ working_directory : ~/skycons
5
+ docker :
6
+ - image : circleci/node:10
8
7
8
+ jobs :
9
+ build :
10
+ << : *defaults
9
11
steps :
10
12
- checkout
11
13
- restore_cache :
22
24
23
25
- run : npm run lint
24
26
- run : npm run build
27
+
28
+ - persist_to_workspace :
29
+ root : ~/skycons
30
+ paths : .
31
+
32
+ deploy :
33
+ << : *defaults
34
+ steps :
35
+ - attach_workspace :
36
+ at : ~/skycons
37
+ - run :
38
+ name : Authenticate with registry
39
+ command : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/skycons/.npmrc
40
+ - run :
41
+ name : Publish package
42
+ command : npm publish
43
+
44
+ workflows :
45
+ version : 2
46
+ default_workflow :
47
+ jobs :
48
+ - build
49
+ - deploy :
50
+ requires :
51
+ - build
52
+ filters :
53
+ tags :
54
+ only : /^v.*/
55
+ branches :
56
+ ignore : /.*/
You can’t perform that action at this time.
0 commit comments