File tree 4 files changed +4301
-29
lines changed
4 files changed +4301
-29
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ defaults : &defaults
4
+ docker :
5
+ - image : circleci/node:8
6
+
7
+ jobs :
8
+ build :
9
+ << : *defaults
10
+ steps :
11
+ - checkout
12
+ - restore_cache :
13
+ keys :
14
+ - npm-cache-{{ checksum "package-lock.json" }}
15
+ - npm-cache-
16
+ - run : npm install
17
+ - save_cache :
18
+ key : npm-cache-{{ checksum "package-lock.json" }}
19
+ paths :
20
+ - node_modules
21
+ - run : npm run lint
22
+ - run : npm run build
23
+ - run : npm run test:mocha
24
+ - run :
25
+ name : install nvm
26
+ command : |
27
+ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
28
+ echo "source ~/.nvm/nvm.sh --no-use" >> $BASH_ENV
29
+ - run : nvm install 6 && nvm use 6 && npm run test:mocha
30
+ - run : rm -rf dist/__specs__
31
+ - run : echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" >> .npmrc
32
+ - persist_to_workspace :
33
+ root : ~/project
34
+ paths :
35
+ - .npmrc
36
+ - dist
37
+ deploy :
38
+ << : *defaults
39
+ steps :
40
+ - checkout
41
+ - attach_workspace :
42
+ at : ~/project
43
+ - run : npm publish
44
+ deploy-beta :
45
+ << : *defaults
46
+ steps :
47
+ - checkout
48
+ - attach_workspace :
49
+ at : ~/project
50
+ - run : npm publish --tag beta
51
+
52
+ workflows :
53
+ version : 2
54
+ build-deploy :
55
+ jobs :
56
+ - build
57
+ - deploy :
58
+ requires :
59
+ - build
60
+ filters :
61
+ tags :
62
+ only : /release-[0-9]+\.[0-9]+\.[0-9]+/
63
+ branches :
64
+ ignore : /.*/
65
+ - deploy-beta :
66
+ requires :
67
+ - build
68
+ filters :
69
+ tags :
70
+ only : /beta-[0-9]+\.[0-9]+\.[0-9]+/
71
+ branches :
72
+ ignore : /.*/
Original file line number Diff line number Diff line change
1
+ v8.3.0
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments