Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use hub cli to publish release #76

Merged
merged 1 commit into from
Dec 27, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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