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

chore: create a release workflow #197

Merged
merged 3 commits into from
Nov 19, 2024
Merged

chore: create a release workflow #197

merged 3 commits into from
Nov 19, 2024

Conversation

nirinchev
Copy link
Contributor

This PR adds the following:

  1. A "Prepare Release" workflow that can be invoked with an update type (patch/minor/major). Once run, it will bump the package version, create a release/version branch, and open a PR.
  2. A package job for the PR workflow. This is run only on release/* branches and will run npm pack and archive the output.
  3. A "Publish Release" workflow that needs to be manually invoked. It will run npm publish, merge the release PR, then create a github release with an autogenerated changelog. This workflow needs to access the npm token as an environment secret and as such needs an approval from a member of the devtools team to run (who is not the person who ran the workflow).

I'm working with IT on getting the actual token, so this wouldn't work until we get it.

@nirinchev nirinchev requested a review from addaleax November 19, 2024 17:24
Copy link
Contributor

@addaleax addaleax left a comment

Choose a reason for hiding this comment

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

Nice, let's try this out!

.github/workflows/publish-release.yml Outdated Show resolved Hide resolved
Co-authored-by: Anna Henningsen <anna.henningsen@mongodb.com>
@nirinchev nirinchev merged commit 39bbf9b into main Nov 19, 2024
12 of 15 checks passed
@nirinchev nirinchev deleted the ni/release-workflow branch November 19, 2024 21:13
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