Skip to content

Commit

Permalink
Adding github workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dawnerd authored May 9, 2019
1 parent 1aedc1a commit 6436480
Showing 1 changed file with 29 additions and 0 deletions.
29 changes: 29 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
workflow "build and test" {
on = "push"
resolves = [
"test",
"build",
]
}

action "build" {
uses = "actions/npm@master"
args = "install"
}

action "test" {
needs = "build"
uses = "actions/npm@master"
args = "test"
}

workflow "publish on release" {
on = "release"
resolves = ["publish"]
}

action "publish" {
uses = "actions/npm@master"
args = "publish"
secrets = ["NPM_AUTH_TOKEN"]
}

0 comments on commit 6436480

Please sign in to comment.