Skip to content

Commit fb42d19

Browse files
author
Claudéric Demers
authored
Github Actions: Release workflow
1 parent 7e8cd6d commit fb42d19

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed

.github/release.workflow

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

0 commit comments

Comments
 (0)