2019-02-05 02:18:16 +03:00
|
|
|
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",
|
2019-02-12 01:52:10 +03:00
|
|
|
"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"
|
2019-02-08 02:05:03 +03:00
|
|
|
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"
|
2019-02-12 00:59:04 +03:00
|
|
|
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"
|
2019-02-12 00:59:04 +03:00
|
|
|
args = ["--unsafe-perm", "test"]
|
2019-02-05 01:00:35 +03:00
|
|
|
}
|
|
|
|
|
2019-02-07 20:00:03 +03:00
|
|
|
action "publish" {
|
2019-02-07 20:45:37 +03:00
|
|
|
needs = ["lint", "test"]
|
2019-02-07 20:00:03 +03:00
|
|
|
uses = "primer/publish@v1.0.0"
|
2019-02-08 02:05:03 +03:00
|
|
|
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
|
|
|
}
|
2019-02-12 01:52:10 +03:00
|
|
|
|
|
|
|
action "deploy" {
|
|
|
|
needs = "install"
|
2019-04-11 20:52:10 +03:00
|
|
|
uses = "primer/deploy@v3.0.0"
|
2019-02-12 01:52:10 +03:00
|
|
|
secrets = [
|
|
|
|
"GITHUB_TOKEN",
|
|
|
|
"NOW_TOKEN",
|
|
|
|
]
|
|
|
|
}
|