mirror of
https://github.com/primer/css.git
synced 2024-09-21 05:39:15 +03:00
42 lines
662 B
HCL
42 lines
662 B
HCL
workflow "lint, test, deploy, publish" {
|
|
on = "push"
|
|
resolves = [
|
|
"lint",
|
|
"test",
|
|
"deploy",
|
|
"npm publish primer",
|
|
]
|
|
}
|
|
|
|
action "install" {
|
|
uses = "actions/npm@master"
|
|
args = "ci"
|
|
}
|
|
|
|
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@status-config-redux"
|
|
secrets = [
|
|
"GITHUB_TOKEN",
|
|
"NOW_TOKEN",
|
|
]
|
|
}
|
|
|
|
action "npm publish primer" {
|
|
needs = ["lint", "test"]
|
|
uses = "primer/publish@8435e6f"
|
|
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
|
|
}
|