1
0
mirror of https://github.com/SomboChea/ui synced 2024-11-05 06:04:28 +07:00

chore: 4.x fixes filter action flow (#33)

* chore: separates release workflow

* chore: separates release workflow
This commit is contained in:
Ayush Sharma 2019-04-09 09:28:52 +02:00 committed by Juan Picado @jotadeveloper
parent 414aaa3d84
commit f9da05744b

36
.github/main.workflow vendored
View File

@ -35,22 +35,46 @@ action "test" {
args = "yarn run test" args = "yarn run test"
} }
workflow "release" { workflow "release" {
resolves = [ resolves = [
"github-release", "github-release",
"tag-filter", "release:lint",
"lint",
] ]
on = "push" on = "push"
} }
action "tag-filter" { action "release:tag-filter" {
uses = "actions/bin/filter@master" uses = "actions/bin/filter@master"
args = "tag v*" args = "tag v*"
} }
action "publish" { action "release:install" {
needs = ["test"] uses = "docker://node:10"
needs = ["release:tag-filter"]
args = "yarn install"
}
action "release:build" {
uses = "docker://node:10"
needs = ["release:install"]
args = "yarn run build"
}
action "release:lint" {
uses = "docker://node:10"
needs = ["release:install"]
args = "yarn run lint"
}
action "release:test" {
uses = "docker://node:10"
needs = ["release:build"]
args = "yarn run test"
}
action "release:publish" {
needs = ["release:test"]
uses = "docker://node:10" uses = "docker://node:10"
args = "sh scripts/publish.sh" args = "sh scripts/publish.sh"
secrets = [ secrets = [
@ -62,7 +86,7 @@ action "publish" {
} }
action "github-release" { action "github-release" {
needs = ["publish"] needs = ["release:publish"]
uses = "docker://node:10" uses = "docker://node:10"
args = "sh scripts/github-release.sh" args = "sh scripts/github-release.sh"
secrets = [ secrets = [