Skip to content

Commit f9da057

Browse files
ayusharmajuanpicado
authored andcommitted
chore: 4.x fixes filter action flow (conventional-changelog#33)
* chore: separates release workflow * chore: separates release workflow
1 parent 414aaa3 commit f9da057

File tree

1 file changed

+30
-6
lines changed

1 file changed

+30
-6
lines changed

.github/main.workflow

+30-6
Original file line numberDiff line numberDiff line change
@@ -35,22 +35,46 @@ action "test" {
3535
args = "yarn run test"
3636
}
3737

38+
3839
workflow "release" {
3940
resolves = [
4041
"github-release",
41-
"tag-filter",
42-
"lint",
42+
"release:lint",
4343
]
4444
on = "push"
4545
}
4646

47-
action "tag-filter" {
47+
action "release:tag-filter" {
4848
uses = "actions/bin/filter@master"
4949
args = "tag v*"
5050
}
5151

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"]
5478
uses = "docker://node:10"
5579
args = "sh scripts/publish.sh"
5680
secrets = [
@@ -62,7 +86,7 @@ action "publish" {
6286
}
6387

6488
action "github-release" {
65-
needs = ["publish"]
89+
needs = ["release:publish"]
6690
uses = "docker://node:10"
6791
args = "sh scripts/github-release.sh"
6892
secrets = [

0 commit comments

Comments
 (0)