File tree 2 files changed +31
-2
lines changed
2 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -3,12 +3,12 @@ version: 2.1
3
3
defaults : &defaults
4
4
resource_class : small
5
5
working_directory : ~/vervet
6
+ docker :
7
+ - image : circleci/golang:1.16-node
6
8
7
9
jobs :
8
10
test :
9
11
<< : *defaults
10
- docker :
11
- - image : circleci/golang:1.16-node
12
12
steps :
13
13
- run :
14
14
name : Install spectral
@@ -55,12 +55,38 @@ jobs:
55
55
- run :
56
56
command : golangci-lint run -v ./...
57
57
58
+ release :
59
+ << : *defaults
60
+ steps :
61
+ - checkout
62
+ - run :
63
+ name : Build package
64
+ command : ./scripts/dist.bash
65
+ - run :
66
+ name : Release package
67
+ command : cd dist; npx semantic-release -b main
68
+
58
69
workflows :
59
70
version : 2
60
71
test :
61
72
jobs :
62
73
- test :
63
74
name : Test
75
+ release :
76
+ jobs :
77
+ - test :
78
+ name : Test
79
+ filters :
80
+ branches :
81
+ only : ' main'
82
+ - release :
83
+ name : Release
84
+ context : nodejs-app-release
85
+ requires :
86
+ - Test
87
+ filters :
88
+ branches :
89
+ only : ' main'
64
90
lint :
65
91
jobs :
66
92
- lint :
Original file line number Diff line number Diff line change
1
+ {
2
+ "branches": "main"
3
+ }
You can’t perform that action at this time.
0 commit comments