Skip to content

Commit

Permalink
Merge pull request #76 from recurly/use-hub-to-publish-release
Browse files Browse the repository at this point in the history
Use hub cli to publish release
  • Loading branch information
douglasmiller authored Dec 27, 2019
2 parents 697d4f4 + 157e738 commit 486c157
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
6 changes: 3 additions & 3 deletions scripts/prepare-release
Original file line number Diff line number Diff line change
Expand Up @@ -28,9 +28,9 @@ else
git add . --all
git commit -F $UNRELEASED_LOG

# push up this branch for PR
# Push up this branch for PR
git push origin release-$NEXT_VERSION

# Create the tag (but don't push it yet, it's pushed in `scripts/release`)
git tag -F $UNRELEASED_LOG $NEXT_VERSION
# Create PR
hub pull-request -c -F $UNRELEASED_LOG
fi
12 changes: 6 additions & 6 deletions scripts/release
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,18 @@ set -e
RELEASED_LOG="/tmp/node-pending-changes.md"
THIS_VERSION=$(./scripts/bump --this-version)

# push the tag
git push origin $THIS_VERSION

# publish to npm
npm publish

# Finally need to update the full changelog
./scripts/changelog
git add CHANGELOG.md
git commit -m "Update Changelog for Release $THIS_VERSION"
git push origin master

# publish to npm
npm publish

# create release
hub release create -c -F $RELEASED_LOG $THIS_VERSION

# Copy-pasteable messages for announcments
echo "Npm: https://www.npmjs.com/package/recurly/v/$THIS_VERSION"
echo "Release: https://github.com/recurly/recurly-client-node/releases/tag/$THIS_VERSION"
Expand Down

0 comments on commit 486c157

Please sign in to comment.