Skip to content

Commit 45550a3

Browse files
committed
✍️ added tag filter & publish to workflow
1 parent bfda81e commit 45550a3

File tree

1 file changed

+13
-7
lines changed

1 file changed

+13
-7
lines changed

.github/main.workflow

Lines changed: 13 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
workflow "Install and Test" {
22
on = "push"
3-
resolves = ["Test"]
3+
resolves = ["Publish"]
44
}
55

66
action "Install" {
@@ -14,9 +14,15 @@ action "Test" {
1414
args = "test"
1515
}
1616

17-
# action "Publish" {
18-
# needs = "Test"
19-
# uses = "borales/actions-yarn@master"
20-
# args = "publish --access public"
21-
# secrets = ["NPM_AUTH_TOKEN"]
22-
# }
17+
action "Release Tag" {
18+
needs = ["Test"]
19+
uses = "actions/bin/filter@master"
20+
args = "tag *.*.*"
21+
}
22+
23+
action "Publish" {
24+
needs = ["Release Tag"]
25+
uses = "borales/actions-yarn@master"
26+
args = "publish --access public"
27+
secrets = ["NPM_AUTH_TOKEN"]
28+
}

0 commit comments

Comments
 (0)