forked from sombochea/verdaccio-ui
GitHub actions (#32)
* chore: fixes snapshots test * chore: adds github actions, issue and feat templates * chore: fixes eslint * chore: remvoes circle ci and adds publish action * chore: adds github-release automation using actions
This commit is contained in:
committed by
Juan Picado @jotadeveloper
parent
96b65d969a
commit
4a459df463
71
.github/main.workflow
vendored
Normal file
71
.github/main.workflow
vendored
Normal file
@@ -0,0 +1,71 @@
|
||||
workflow "build and test" {
|
||||
resolves = [
|
||||
"lint",
|
||||
"test",
|
||||
"branch-filter",
|
||||
]
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "branch-filter" {
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "branch"
|
||||
}
|
||||
|
||||
action "install" {
|
||||
uses = "docker://node:10"
|
||||
args = "yarn install"
|
||||
}
|
||||
|
||||
action "build" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["install"]
|
||||
args = "yarn run build"
|
||||
}
|
||||
|
||||
action "lint" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["install"]
|
||||
args = "yarn run lint"
|
||||
}
|
||||
|
||||
action "test" {
|
||||
uses = "docker://node:10"
|
||||
needs = ["build"]
|
||||
args = "yarn run test"
|
||||
}
|
||||
|
||||
workflow "release" {
|
||||
resolves = [
|
||||
"github-release",
|
||||
"tag-filter",
|
||||
"lint",
|
||||
]
|
||||
on = "push"
|
||||
}
|
||||
|
||||
action "tag-filter" {
|
||||
uses = "actions/bin/filter@master"
|
||||
args = "tag v*"
|
||||
}
|
||||
|
||||
action "publish" {
|
||||
needs = ["test"]
|
||||
uses = "docker://node:10"
|
||||
args = "sh scripts/publish.sh"
|
||||
secrets = [
|
||||
"REGISTRY_AUTH_TOKEN",
|
||||
]
|
||||
env = {
|
||||
REGISTRY_URL = "registry.verdaccio.org"
|
||||
}
|
||||
}
|
||||
|
||||
action "github-release" {
|
||||
needs = ["publish"]
|
||||
uses = "docker://node:10"
|
||||
args = "sh scripts/github-release.sh"
|
||||
secrets = [
|
||||
"GITHUB_TOKEN",
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user