Update main.workflow

This commit is contained in:
Nicolò Ribaudo 2019-03-19 19:02:54 +01:00 committed by GitHub
parent f2ee84b6a3
commit 7df0d16131
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -6,34 +6,28 @@ workflow "Release" {
action "Trigger GitHub release" {
uses = "./.github/actions/trigger-github-release/"
secrets = ["GITHUB_TOKEN"]
env = {
COMMIT_AUTHOR_NAME = "Babel Bot"
COMMIT_AUTHOR_EMAIL = "babel@hopeinsource.com"
}
needs = ["Create release tag"]
}
action "Publish to npm" {
uses = "docker://node:10"
secrets = ["NPM_TOKEN"]
runs = "make"
args = "publish"
env = {
CI = "true"
}
needs = ["Create release tag"]
}
# When GitHub Actions will support the "release" event for public
# repositories, we won't need this checks anymore.
action "Create release tag" {
uses ="./.github/actions/create-release-tag"
uses = "./.github/actions/create-release-tag"
needs = [
"Is version commit",
"On master branch",