Skip to content

Commit

Permalink
chore: add publish workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
coston authored Sep 13, 2019
1 parent 1bb404f commit 7338a92
Showing 1 changed file with 38 additions and 0 deletions.
38 changes: 38 additions & 0 deletions .github/.github/workflows/publish.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
workflow "build and test" {
on = "push"
resolves = ["test", "coverage", "lint"]
}

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

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

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

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

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

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

0 comments on commit 7338a92

Please sign in to comment.