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

docs: Document release-related chores! #229

Merged
merged 1 commit into from
Feb 3, 2021
Merged

docs: Document release-related chores! #229

merged 1 commit into from
Feb 3, 2021

Conversation

jacobwinch
Copy link
Contributor

Adding a couple of notes for forgetful people like me! Obviously this isn't a great process, but at least the docs are now complete. Hopefully we can automate it and avoid these tedious steps soon!

@jacobwinch jacobwinch requested a review from a team February 3, 2021 15:54
@jacobwinch jacobwinch merged commit 045437c into main Feb 3, 2021
@jacobwinch jacobwinch deleted the jw-docs branch February 3, 2021 16:52
@@ -77,6 +77,10 @@ There are more details on using the CDK library in [docs](docs)
We use [`np`](https://www.npmjs.com/package/np) to help orchestrate the release process.
To release a new version, run `./script/release`. You will need to be logged in to your `npm` account (`npm login`) which must be part of the Guardian organisation. If you have 2fa enabled, you will be prompted for an OTP during the release process.

The script automatically prepares a [GitHub Release](https://docs.github.com/en/github/administering-a-repository/about-releases) and opens a pre-populated form in your browser. Please complete the GitHub Release creation manually.

You will also need to manually checkout a new branch and open a PR containing version bump changes which are automatically committed during the release process.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This works 🎉 (assuming one uses the GitHub CLI).

NEW_VERSION=$(git log -1 --pretty=%B) && git checkout -b release-$NEW_VERSION && gh pr create --title "chore: ${NEW_VERSION}" --body ""

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants