mirror of
https://github.com/primer/css.git
synced 2024-12-11 11:16:04 +03:00
43 lines
724 B
HCL
43 lines
724 B
HCL
workflow "lint, test, deploy, publish" {
|
|
on = "push"
|
|
resolves = [
|
|
"lint",
|
|
"test",
|
|
"publish",
|
|
"deploy",
|
|
]
|
|
}
|
|
|
|
action "install" {
|
|
uses = "actions/npm@v2.0.0"
|
|
args = ["install", "--unsafe-perm"]
|
|
}
|
|
|
|
action "lint" {
|
|
needs = "install"
|
|
uses = "actions/npm@v2.0.0"
|
|
args = ["--unsafe-perm", "run", "lint"]
|
|
}
|
|
|
|
action "test" {
|
|
needs = "install"
|
|
uses = "actions/npm@v2.0.0"
|
|
args = ["--unsafe-perm", "test"]
|
|
}
|
|
|
|
action "publish" {
|
|
needs = ["lint", "test"]
|
|
uses = "primer/publish@v1.0.0"
|
|
args = ["--", "--unsafe-perm"]
|
|
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
|
|
}
|
|
|
|
action "deploy" {
|
|
needs = "install"
|
|
uses = "primer/deploy@v3.0.0"
|
|
secrets = [
|
|
"GITHUB_TOKEN",
|
|
"NOW_TOKEN",
|
|
]
|
|
}
|