absolute-version / commit-and-tag-version

Fork of the excellent standard-version. Automate versioning and CHANGELOG generation, with semver.org and conventionalcommits.org :trophy:
ISC License
360 stars 33 forks source link

Use without pushing directly to master/main? #126

Open DevRCRun opened 5 months ago

DevRCRun commented 5 months ago

Similar question to this issue in the original repo.

https://github.com/conventional-changelog/standard-version/issues/817

We also have a policy that we cannot not push directly to master without going through an approval cycle (PR), but are looking at this tool for its simplicity over other options.

Is this use case compatible?

TimothyJones commented 5 months ago

Yes, if you run it via automation (with a token that is allowed to push to master).

Tags don’t work well from PRs, generally.

if you want to do pr approved releases, you can have a look at release-please

TimothyJones commented 5 months ago

Another option could be to run it with —skip-tags, then raise a PR (with some automation to detect the version bump and tag master after merge).

Either way, I think you’ll need something custom to get around this restriction