File tree Expand file tree Collapse file tree 3 files changed +33
-7
lines changed
Expand file tree Collapse file tree 3 files changed +33
-7
lines changed Original file line number Diff line number Diff line change 1+ //registry.npmjs.org/:_authToken = ${ NPM_TOKEN }
Original file line number Diff line number Diff line change 1+ defaults : &defaults
2+ docker :
3+ - image : circleci/node:latest
4+
15version : 2.1
26jobs :
3- build :
4- docker :
5- - image : circleci/node:latest
7+ build-docs :
8+ << : *defaults
69
710 steps :
811 - checkout
@@ -38,12 +41,34 @@ jobs:
3841 # https://stackoverflow.com/a/48763205
3942 git push -q -f https://${GH_PAGES_TOKEN}@github.com/hunchcloud/elements.git netlify
4043
44+ release :
45+ << : *defaults
46+
47+ steps :
48+ - checkout
49+
50+ - restore_cache :
51+ keys :
52+ - deps-{{ checksum "package.json" }}
53+
54+ - run :
55+ command : |
56+ mv .circleci/.npmrc .
57+ npm run release
58+
4159workflows :
42- build-gh-pages :
60+ main :
4361 jobs :
44- - build :
62+ - build-docs :
4563 context : gh-pages
4664 filters :
4765 branches :
4866 only :
4967 - master
68+ - release :
69+ context : npm-release
70+ filters :
71+ branches :
72+ ignore : /.*/
73+ tags :
74+ only : /^v\d+\.\d+\.\d+$/
Original file line number Diff line number Diff line change 11{
22 "name" : " @hunchcloud/elements" ,
3- "version" : " 0.2.0 " ,
3+ "version" : " 0.2.1 " ,
44 "description" : " A collection of custom elements" ,
55 "main" : " dist/index.js" ,
66 "files" : [
2626 "docs:build" : " node scripts/build-docs.js" ,
2727 "docs:dist" : " parcel build www/index.html" ,
2828 "docs:serve" : " parcel www/index.html" ,
29- "release" : " rm -r dist && yarn build && npm publish --access public" ,
29+ "release" : " rm -rf dist && npm run build && npm publish --access public" ,
3030 "start" : " tsc -w"
3131 },
3232 "devDependencies" : {
You can’t perform that action at this time.
0 commit comments