Skip to content

Commit

Permalink
Delete release-candidate tag correctly.
Browse files Browse the repository at this point in the history
  • Loading branch information
David Braun authored and David Braun committed Oct 4, 2018
1 parent 38208ab commit 105f17b
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
9 changes: 6 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@ jobs:
mostRecentTag=$(git describe --abbrev=0 --tags)
if [ $mostRecentTag = release-candidate ]; then
set -o verbose
# Delete the tag before testing the build in case it fails.
git remote add bot https://${GIT_BOT_TOKEN}@github.com/cosmos/voyager.git
git push --delete bot release-candidate
sudo tasks/build/installWine.sh
yarn install
Expand All @@ -147,9 +153,6 @@ jobs:
# build Voyager
node tasks/build/build.js
# Delete the tag before testing the build in case it fails.
git push --delete origin release-candidate
# test linux build
tar -zxvf ./builds/Voyager/Cosmos_Voyager-*-Linux.tar.gz
yarn test:exe "./Cosmos Voyager"
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

* automatic release process bugs @NodeGuy

## [0.10.5] - 2018-10-04

### Changed
Expand Down
2 changes: 1 addition & 1 deletion tasks/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ if (require.main === module) {
)

const version = require(path.join(__dirname, `../package.json`)).version
const tag = `v` + version
const tag = `v${version}`
console.log(`--- Releasing tag`, tag, `---`)
const token = process.env.GIT_BOT_TOKEN
await publishRelease({ notes, token, tag })
Expand Down

0 comments on commit 105f17b

Please sign in to comment.