From 40464b4014d00d99ccf902184a9148e4f2c76fbc Mon Sep 17 00:00:00 2001 From: David Braun Date: Sat, 1 Sep 2018 16:02:02 -0400 Subject: [PATCH] Do not try to publish a release on every push to `develop`. (#1261) --- .circleci/config.yml | 4 ++-- CHANGELOG.md | 4 ++++ tasks/{releasePullRequest.js => createReleasePR.js} | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) rename tasks/{releasePullRequest.js => createReleasePR.js} (97%) diff --git a/.circleci/config.yml b/.circleci/config.yml index 1fc577670d..64dd9efad7 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -120,7 +120,7 @@ jobs: - v2-dependencies-root- - run: yarn install - - run: node tasks/releasePullRequest.js + - run: node tasks/createReleasePR.js # Publish the release to GitHub. publish: @@ -184,7 +184,7 @@ workflows: branches: only: develop tags: - only: /.+/ + only: /^v.*/ release: jobs: diff --git a/CHANGELOG.md b/CHANGELOG.md index 3c0f47666f..1c5bb1c5c7 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -11,6 +11,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0. * test if build Voyager actually starts @faboweb +### Fixed + +* Do not try to publish a release on every push to `develop`. @NodeGuy + ## [0.10.2] - 2018-08-29 ### Changed diff --git a/tasks/releasePullRequest.js b/tasks/createReleasePR.js similarity index 97% rename from tasks/releasePullRequest.js rename to tasks/createReleasePR.js index 2cc2c72ef2..5a75e6fe4d 100644 --- a/tasks/releasePullRequest.js +++ b/tasks/createReleasePR.js @@ -36,7 +36,7 @@ const pushCommit = async ({ token, head }) => { // needed to authenticate properly await git.addRemote("bot", `https://${token}@github.com/cosmos/voyager.git`) - await git.push("bot", `HEAD:${head}`, { "--tags": null }) + await git.push("bot", `HEAD:${head}`) } const recentChanges = changeLog =>