Repository navigation
Conversation
Co-authored-by: Innie of Bokvi <innie@bokvi.com>
…e uses Co-authored-by: Innie of Bokvi <innie@bokvi.com>
Co-authored-by: Innie of Bokvi <innie@bokvi.com>
Collaborator
Author
|
Superseded by the PR from ci/semantic-release-versions: a follow-up commit here failed commitlint's header length, and the branch can't be force-pushed, so the change moved to a clean single-commit branch. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Adds automated versioning and GitHub releases while keeping
:lateston every push tomain.What changes
.releaserc.json: semantic-release onmainwith theconventionalcommitspreset (sofeat!:/BREAKING CHANGE:→ major,feat→ minor,fix/perf→ patch, other types → no release). Only the commit-analyzer, release-notes-generator and github plugins: nothing is committed back tomain(its ruleset blocks direct pushes), and the github plugin's PR/issue comments and labels are off, so the job only needscontents: write.publish.yml:buildstill pushes:lateston every push tomain(andci-bokvi), and now exposes the pushed digest.releasejob (needs: build,mainonly, serialized by a concurrency group): runs semantic-release, which creates thevX.Y.Ztag and GitHub release, then tags the same digest as:X.Y.Zand:sha-<short>withbuildx imagetools create, without rebuilding.tags: ['v*']trigger is removed: a tag pushed withGITHUB_TOKENstarts no workflow, so the versioned image is tagged in the release job.v*tags are no longer pushed by hand.semantic-release packages are pinned in the workflow, like commitlint in
lint.yml.conventional-changelog-conventionalcommitsstays on 9.x: 10.x needsconventional-changelog-writer@9, but@semantic-release/release-notes-generator@14ships writer 8. The dry run below failed ingenerateNoteswith 10.4.1.Assumptions
:lateststays on every push tomain, as before. Versioned tags come in addition.featcommits in its notes.:X/:X.Ytags, and docs-git'srelease-guardaction.Dotykacka/docs-gitis private, so a bokvi workflow can't use it, and this repo has norelease/*branches.Proof
There's no UI to screenshot before merge. This is a semantic-release dry run of this branch (
--dry-run --no-ci --branches ci/semantic-release) with the pinned packages:actionlint .github/workflows/publish.ymlpasses. Screenshots of the v1.0.0 release and the:1.0.0package tag will be added after the merge run.