Skip to content

Commit

Permalink
add first github action! (#891)
Browse files Browse the repository at this point in the history
* add first github action!

* Update main.workflow
  • Loading branch information
johnnyreilly authored Jan 5, 2019
1 parent e3d6367 commit 177a985
Showing 1 changed file with 35 additions and 0 deletions.
35 changes: 35 additions & 0 deletions .github/main.workflow
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
workflow "build, test and publish on release" {
on = "release"
resolves = "publish"
}

# install with yarn
action "install" {
uses = "actions/[email protected]"
runs = "yarn"
args = "install"
}

# build with yarn
action "build" {
needs = "install"
uses = "actions/[email protected]"
runs = "yarn"
args = "build"
}

# test with yarn
action "test" {
needs = "build"
uses = "actions/[email protected]"
runs = "yarn"
args = "test"
}

# publish with npm
action "publish" {
needs = "test"
uses = "actions/[email protected]"
args = "publish"
secrets = ["NPM_AUTH_TOKEN"]
}

0 comments on commit 177a985

Please sign in to comment.