Skip to content

Commit 9650605

Browse files
authored
Update main.workflow
1 parent 2c8bb78 commit 9650605

File tree

1 file changed

+29
-0
lines changed

1 file changed

+29
-0
lines changed

.github/main.workflow

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
workflow "Build, Test, and Publish" {
2+
on = "push"
3+
resolves = ["Publish"]
4+
}
5+
6+
action "Build" {
7+
uses = "actions/npm@master"
8+
args = "install"
9+
}
10+
11+
action "Test" {
12+
needs = "Build"
13+
uses = "actions/npm@master"
14+
args = "test"
15+
}
16+
17+
# Filter for a new tag
18+
action "Tag" {
19+
needs = "Test"
20+
uses = "actions/bin/filter@master"
21+
args = "tag"
22+
}
23+
24+
action "Publish" {
25+
needs = "Tag"
26+
uses = "actions/npm@master"
27+
args = "publish --access public"
28+
secrets = ["NPM_AUTH_TOKEN"]
29+
}

0 commit comments

Comments
 (0)