verdaccio-ui/.github/main.workflow

68 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

################################################
# Workflow for a github release when a tag is
# pushed
################################################
workflow "github release" {
resolves = [
"release.github",
"release.lint",
]
on = "push"
}
action "release.filter" {
2019-04-28 19:32:40 +07:00
uses = "actions/bin/filter@master"
args = "tag v*"
}
action "release.install" {
uses = "docker://node:10"
needs = ["release.filter"]
2019-04-28 19:32:40 +07:00
args = "yarn install"
}
action "release.build" {
2019-04-28 19:32:40 +07:00
uses = "docker://node:10"
needs = ["release.install"]
2019-04-28 19:32:40 +07:00
args = "yarn run build"
}
action "release.lint" {
2019-04-28 19:32:40 +07:00
uses = "docker://node:10"
needs = ["release.install"]
2019-04-28 19:32:40 +07:00
args = "yarn run lint"
}
action "release.test" {
2019-04-28 19:32:40 +07:00
uses = "docker://node:10"
needs = ["release.build"]
2019-04-28 19:32:40 +07:00
args = "yarn run test"
}
action "release.auth" {
needs = ["release.test"]
uses = "actions/bin/filter@master"
args = ["actor", "octocat", "torvalds"]
}
action "release.npm.publish" {
needs = ["release.auth"]
uses = "docker://node:10"
args = "sh scripts/publish.sh"
secrets = [
"REGISTRY_AUTH_TOKEN",
]
env = {
2019-04-14 05:25:45 +07:00
REGISTRY_URL = "registry.npmjs.org"
}
}
action "release.github" {
needs = ["release.npm.publish"]
uses = "docker://node:10"
args = "sh scripts/github-release.sh"
secrets = [
"GITHUB_TOKEN",
]
2019-04-28 19:32:40 +07:00
}