mirror of
https://github.com/primer/css.git
synced 2024-09-21 13:51:52 +03:00
45 lines
676 B
HCL
45 lines
676 B
HCL
workflow "lint, test, deploy, publish" {
|
|
on = "push"
|
|
resolves = [
|
|
"lint",
|
|
"test",
|
|
"deploy",
|
|
"publish",
|
|
]
|
|
}
|
|
|
|
action "install" {
|
|
uses = "actions/npm@master"
|
|
args = "install"
|
|
}
|
|
|
|
action "lint" {
|
|
needs = "install"
|
|
uses = "actions/npm@master"
|
|
args = "run lint"
|
|
}
|
|
|
|
action "test" {
|
|
needs = "install"
|
|
uses = "actions/npm@master"
|
|
args = "test"
|
|
}
|
|
|
|
action "deploy" {
|
|
needs = "install"
|
|
uses = "primer/deploy@master"
|
|
secrets = ["NOW_TOKEN"]
|
|
env = {
|
|
STATUS_CONTEXT = "docs"
|
|
}
|
|
}
|
|
|
|
action "publish" {
|
|
needs = ["lint", "test"]
|
|
uses = "actions/npm@master"
|
|
runs = "script/publish"
|
|
env = {
|
|
STATUS_CONTEXT = "npm publish primer"
|
|
}
|
|
}
|