File tree 1 file changed +30
-6
lines changed
1 file changed +30
-6
lines changed Original file line number Diff line number Diff line change @@ -35,22 +35,46 @@ action "test" {
35
35
args = " yarn run test"
36
36
}
37
37
38
+
38
39
workflow "release" {
39
40
resolves = [
40
41
" github-release" ,
41
- " tag-filter" ,
42
- " lint" ,
42
+ " release:lint" ,
43
43
]
44
44
on = " push"
45
45
}
46
46
47
- action "tag-filter" {
47
+ action "release: tag-filter" {
48
48
uses = " actions/bin/filter@master"
49
49
args = " tag v*"
50
50
}
51
51
52
- action "publish" {
53
- needs = [" test" ]
52
+ action "release:install" {
53
+ uses = " docker://node:10"
54
+ needs = [" release:tag-filter" ]
55
+ args = " yarn install"
56
+ }
57
+
58
+ action "release:build" {
59
+ uses = " docker://node:10"
60
+ needs = [" release:install" ]
61
+ args = " yarn run build"
62
+ }
63
+
64
+ action "release:lint" {
65
+ uses = " docker://node:10"
66
+ needs = [" release:install" ]
67
+ args = " yarn run lint"
68
+ }
69
+
70
+ action "release:test" {
71
+ uses = " docker://node:10"
72
+ needs = [" release:build" ]
73
+ args = " yarn run test"
74
+ }
75
+
76
+ action "release:publish" {
77
+ needs = [" release:test" ]
54
78
uses = " docker://node:10"
55
79
args = " sh scripts/publish.sh"
56
80
secrets = [
@@ -62,7 +86,7 @@ action "publish" {
62
86
}
63
87
64
88
action "github-release" {
65
- needs = [" publish" ]
89
+ needs = [" release: publish" ]
66
90
uses = " docker://node:10"
67
91
args = " sh scripts/github-release.sh"
68
92
secrets = [
You can’t perform that action at this time.
0 commit comments