Skip to content
New issue

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

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

Already on GitHub? # to your account

ADAPT-2518: Added autorelease github action. #825

Merged
merged 5 commits into from
May 21, 2021
Merged

ADAPT-2518: Added autorelease github action. #825

merged 5 commits into from
May 21, 2021

Conversation

nplowman
Copy link

@nplowman nplowman commented May 17, 2021

READY FOR REVIEW

Summary

Adds autorelease Github action. This action:

  • Automatically updates the changelog
  • Increments the release version (both in package.json and with a git tag) based on Github label. (i.e. patch, minor, major, alpha, beta, rc)
  • Runs 'npm run package' and commits any new changes to dist folder.
  • Publishes latest package to npm.

Needed By (Date)

  • Next 2-3 days

Urgency

  • 3/10. (Process improvement, but nothing urgent or time sensitive).

Steps to Test

This one will be a bit tricky to test, as the action is only fired when merging to "main".
You may need to create a few dummy PRs that make changes to the README file or something along those lines to test the different scenarios.

  • Create a new pull request, with base branch of "main".
  • Add one of the following labels: "patch", "minor", "major", "alpha", "dev", or "rc"
  • Merge the PR.
  • Click the "Actions" tab in Github, validate that the action fired correctly and there are no log errors.
  • View the "Code" tab in Github. You should see that the CHANGELOG file has been updated with commit messages from the release, package.json updated with a new version number, and a new tag should also be visible.
  • Check releases in Github (under code -> tags -> releases) and ensure release notes are present.
  • Github release should also show 'latest release', except for alpha, beta, and rc releases, which should show a "Prerelease" tag.

Associated Issues and/or People

See Also

@nplowman
Copy link
Author

@sherakama
Make sure to add the NPM_TOKEN to the secrets for this repo before merging.

Also, I ran into a build error that was being caused by 'autoprefixer' being missing. Not sure how that issue got introduced, but just went ahead and fixed it within this PR.

@nplowman nplowman requested a review from sherakama May 21, 2021 15:11
@sherakama sherakama added the alpha Releases an alpha tag label May 21, 2021
Copy link
Member

@sherakama sherakama left a comment

Choose a reason for hiding this comment

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

GTG

@sherakama sherakama merged commit 5f4bfe0 into v7 May 21, 2021
@sherakama sherakama deleted the ADAPT_2518 branch May 21, 2021 16:13
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
alpha Releases an alpha tag size/xl
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants