Update main.workflow
This commit is contained in:
parent
0030d38b65
commit
c617dee618
|
@ -1,6 +1,6 @@
|
||||||
workflow "Build and Publish" {
|
workflow "Build and Publish" {
|
||||||
on = "push"
|
on = "push"
|
||||||
resolves = "NPM Publish"
|
resolves = ["Publish"]
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Shell Lint" {
|
action "Shell Lint" {
|
||||||
|
@ -8,13 +8,8 @@ action "Shell Lint" {
|
||||||
args = "entrypoint.sh"
|
args = "entrypoint.sh"
|
||||||
}
|
}
|
||||||
|
|
||||||
action "Docker Lint" {
|
|
||||||
uses = "docker://replicated/dockerfilelint"
|
|
||||||
args = ["Dockerfile"]
|
|
||||||
}
|
|
||||||
|
|
||||||
action "Build" {
|
action "Build" {
|
||||||
needs = ["Shell Lint", "Docker Lint"]
|
needs = ["Shell Lint"]
|
||||||
uses = "actions/docker/cli@master"
|
uses = "actions/docker/cli@master"
|
||||||
args = "build -t npm ."
|
args = "build -t npm ."
|
||||||
}
|
}
|
||||||
|
@ -31,7 +26,7 @@ action "Publish Filter" {
|
||||||
args = "branch master"
|
args = "branch master"
|
||||||
}
|
}
|
||||||
|
|
||||||
action "NPM Publish" {
|
action "Publish" {
|
||||||
needs = "Publish Filter"
|
needs = "Publish Filter"
|
||||||
uses = "mikeal/merge-release@master"
|
uses = "mikeal/merge-release@master"
|
||||||
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
|
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
|
||||||
|
|
Loading…
Reference in New Issue