1
1
mirror of https://github.com/primer/css.git synced 2024-11-13 08:04:16 +03:00

ci: prioritize publishing before deploying

This commit is contained in:
Shawn Allen 2019-02-11 14:52:10 -08:00
parent 5fa428a2c9
commit 3fd7cf5d2e

20
.github/main.workflow vendored
View File

@ -3,8 +3,8 @@ workflow "lint, test, deploy, publish" {
resolves = [
"lint",
"test",
"deploy",
"publish",
"deploy",
]
}
@ -25,15 +25,6 @@ action "test" {
args = "test"
}
action "deploy" {
needs = "install"
uses = "primer/deploy@v2.2.0"
secrets = [
"GITHUB_TOKEN",
"NOW_TOKEN",
]
}
action "publish" {
needs = ["lint", "test"]
uses = "primer/publish@v1.0.0"
@ -43,3 +34,12 @@ action "publish" {
PUBLISH_STATUS_CONTEXT = "npm publish primer"
}
}
action "deploy" {
needs = "install"
uses = "primer/deploy@v2.2.0"
secrets = [
"GITHUB_TOKEN",
"NOW_TOKEN",
]
}