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"
|
|
|
|
}
|
|
|
|
|
2019-05-23 18:55:00 +00:00
|
|
|
action "Build Docker" {
|
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 ."
|
|
|
|
}
|
|
|
|
|
2019-05-23 18:55:00 +00:00
|
|
|
action "Build" {
|
|
|
|
needs = ["Build Docker"]
|
|
|
|
uses = "actions/npm@master"
|
|
|
|
args = "install"
|
|
|
|
}
|
|
|
|
|
2019-01-26 22:03:51 +00:00
|
|
|
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
|
|
|
}
|