gh-action-bump-version/.github/main.workflow

39 lines
759 B
Plaintext
Raw Normal View History

2019-01-26 22:03:51 +00:00
workflow "Build and Publish" {
on = "push"
resolves = "Docker Publish"
}
action "Shell Lint" {
uses = "actions/bin/shellcheck@master"
args = "entrypoint.sh"
}
action "Docker Lint" {
uses = "docker://replicated/dockerfilelint"
args = ["Dockerfile"]
}
action "Build" {
needs = ["Shell Lint", "Docker Lint"]
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"
}
action "NPM Publish" {
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
}