1
1
mirror of https://github.com/primer/css.git synced 2024-12-11 23:52:19 +03:00
css/.github/main.workflow

43 lines
724 B
Plaintext
Raw Normal View History

workflow "lint, test, deploy, publish" {
2019-02-05 01:00:35 +03:00
on = "push"
resolves = [
"lint",
"test",
2019-02-07 02:06:56 +03:00
"publish",
"deploy",
2019-02-05 01:00:35 +03:00
]
}
action "install" {
2019-02-07 02:05:23 +03:00
uses = "actions/npm@v2.0.0"
args = ["install", "--unsafe-perm"]
2019-02-05 01:00:35 +03:00
}
action "lint" {
needs = "install"
2019-02-07 02:05:23 +03:00
uses = "actions/npm@v2.0.0"
args = ["--unsafe-perm", "run", "lint"]
2019-02-05 01:00:35 +03:00
}
action "test" {
needs = "install"
2019-02-07 02:05:23 +03:00
uses = "actions/npm@v2.0.0"
args = ["--unsafe-perm", "test"]
2019-02-05 01:00:35 +03:00
}
action "publish" {
2019-02-07 20:45:37 +03:00
needs = ["lint", "test"]
uses = "primer/publish@v1.0.0"
args = ["--", "--unsafe-perm"]
2019-02-06 23:47:53 +03:00
secrets = ["GITHUB_TOKEN", "NPM_AUTH_TOKEN"]
2019-02-05 01:00:35 +03:00
}
action "deploy" {
needs = "install"
2019-04-11 20:52:10 +03:00
uses = "primer/deploy@v3.0.0"
secrets = [
"GITHUB_TOKEN",
"NOW_TOKEN",
]
}