File tree Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Expand file tree Collapse file tree 2 files changed +26
-2
lines changed Original file line number Diff line number Diff line change 26
26
- persist_to_workspace :
27
27
root : ~/repo
28
28
paths : .
29
+ deploy :
30
+ << : *defaults
31
+ steps :
32
+ - attach_workspace :
33
+ at : ~/repo
34
+ - run :
35
+ name : Configure registry auth
36
+ command : echo "//registry.npmjs.org/:_authToken=$NPM_AUTH_TOKEN" >> ~/repo/.npmrc
37
+ - run :
38
+ name : Publish package
39
+ # For now we only publish on tags here and assume the version number is already correct.
40
+ # If we change this then we need to automate updating the version number.
41
+ command : npm publish $(if [ -z "$CIRCLE_TAG" ]; then echo "--tag next"; fi)
29
42
30
43
workflows :
31
44
version : 2
32
45
test-deploy :
33
46
jobs :
34
- - test
47
+ - test :
48
+ filters :
49
+ tags :
50
+ only : /^v.*/
51
+ - deploy :
52
+ requires :
53
+ - test
54
+ filters :
55
+ tags :
56
+ only : /^v.*/
57
+ branches :
58
+ ignore : /.*/
Original file line number Diff line number Diff line change 1
1
{
2
- "name" : " @microbit-foundation /microbit-universal-hex" ,
2
+ "name" : " @microbit/microbit-universal-hex" ,
3
3
"version" : " 0.1.0" ,
4
4
"description" : " Create micro:bit Universal Hexes." ,
5
5
"keywords" : [
You can’t perform that action at this time.
0 commit comments