Skip to content

Semantic release support #403

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

Merged
merged 14 commits into from
May 5, 2020

Conversation

gargroh
Copy link
Contributor

@gargroh gargroh commented Apr 25, 2020

These changes will help in automating the whole package release workflow including :-

  • Determining the next version number
  • Generating the release notes
  • Publishing the package

No need to maintain changelog now, details will be visible via Releases tab in github with other meta data.

@tannerlinsley to enable releases please add npm publish and github token in secrets

@tannerlinsley
Copy link
Collaborator

So what happens if I merge or create commits that don't have any of these template prefixes? What happens? I mostly just want this to be forgiving.

@gargroh
Copy link
Contributor Author

gargroh commented May 2, 2020

Yeah, if commits does not follow template, then it will ignore them and no release.

So how it goes - It analyses all commits one by one made since last release and chooses the highest version. For ex - 5 commits are there since last release then in ci logs it will show something like -

Analysing 1 'commit msg' - no relese required
Analysing 2 'commit msg 2' - patch release required
Analysing 3 'commit msg 3' - minor required
Analysing 4 'commit msg 4' - no release required
Analysing 5 'does not follow template' - no release required

Then it will conclude to make minor release.

@tannerlinsley
Copy link
Collaborator

Awesome. I'll admit, I am weary to hand over release control to this, but am willing to give it a shot.

@gargroh
Copy link
Contributor Author

gargroh commented May 2, 2020

Thanks, sounds good.

@tannerlinsley tannerlinsley merged commit 7e38bd2 into TanStack:master May 5, 2020
@gargroh
Copy link
Contributor Author

gargroh commented May 6, 2020

@all-contributors please add @gargroh for tool

@allcontributors
Copy link
Contributor

@gargroh

I've put up a pull request to add @gargroh! 🎉

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