2019-01-26 22:03:51 +00:00
|
|
|
workflow "Build and Publish" {
|
|
|
|
on = "push"
|
2019-01-27 03:54:51 +00:00
|
|
|
resolves = ["Publish"]
|
2019-01-26 22:03:51 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
action "Shell Lint" {
|
|
|
|
uses = "actions/bin/shellcheck@master"
|
|
|
|
args = "entrypoint.sh"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Build" {
|
2019-01-27 03:54:51 +00:00
|
|
|
needs = ["Shell Lint"]
|
2019-01-26 22:03:51 +00:00
|
|
|
uses = "actions/docker/cli@master"
|
|
|
|
args = "build -t npm ."
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Docker Tag" {
|
|
|
|
needs = ["Build"]
|
|
|
|
uses = "actions/docker/tag@master"
|
|
|
|
args = "npm github/npm --no-latest"
|
|
|
|
}
|
|
|
|
|
|
|
|
action "Publish Filter" {
|
|
|
|
needs = ["Build"]
|
|
|
|
uses = "actions/bin/filter@master"
|
|
|
|
args = "branch master"
|
|
|
|
}
|
|
|
|
|
2019-01-27 03:54:51 +00:00
|
|
|
action "Publish" {
|
2019-01-26 22:24:34 +00:00
|
|
|
needs = "Publish Filter"
|
2019-01-26 22:11:28 +00:00
|
|
|
uses = "mikeal/merge-release@master"
|
2019-01-26 22:17:41 +00:00
|
|
|
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
|
2019-01-26 22:03:51 +00:00
|
|
|
}
|