Permalink
Find file Copy path
df04a56 Jan 8, 2019
1 contributor

Users who have contributed to this file

44 lines (38 sloc) 923 Bytes
workflow "build, test and publish on release" {
on = "push"
# resolves = "publish" - commented until this issue is resolved: https://github.com/actions/bin/issues/13
resolves = "check for new tag"
}
# install with yarn
action "install" {
uses = "actions/npm@1.0.0"
runs = "yarn"
args = "install"
}
# build with yarn
action "build" {
needs = "install"
uses = "actions/npm@1.0.0"
runs = "yarn"
args = "build"
}
# test with yarn
action "test" {
needs = "build"
uses = "./.github/node-chrome"
runs = "yarn"
args = "execution-tests"
}
# filter for a new tag
action "check for new tag" {
needs = "test"
uses = "actions/bin/filter@master"
args = "tag"
}
# publish with npm - commented until this issue is resolved: https://github.com/actions/bin/issues/13
#action "publish" {
# needs = "check for new tag"
# uses = "actions/npm@1.0.0"
# args = "publish"
# secrets = ["NPM_AUTH_TOKEN"]
#}