main
test / test (push) Successful in 5s
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
ci-shared
Shared Gitea Actions steps for the extant2000 repos. Public, holds no secrets.
release (auto-release)
Computes the next semver from Conventional Commits since the last vX.Y.Z
tag, then creates an annotated tag and a Gitea release on the released commit.
type!:or aBREAKING CHANGE:footer = major,feat:= minor, any other commit = patch.- Merge commits and commits with
[skip release]in the subject do not count. No counted commit since the last tag = no release. - First release (no tag yet) = the version the repo declares:
initial-versioninput,VERSION,package.json, a WordPress pluginVersion:header,MARKETING_VERSION, GradleversionName, else0.1.0. - Release notes group commits under Features, Fixes and Other, each linked.
- Optional:
imagepushesIMAGE:vX.Y.Znext toIMAGE:<sha8>;npm-tokenpublishes the package asX.Y.Z(skipped when that version is already in the registry).package.jsonin git is not rewritten. - A rerun on a released commit creates nothing new, but still outputs the version, so a failed image push or npm publish can be retried.
Deploy repo, after the deploy job:
release:
needs: [deploy]
if: gitea.event_name == 'push' && gitea.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with: { fetch-depth: 0 }
- uses: https://git.extant2000.com/extant2000/ci-shared/release@v1
with:
image: git.extant2000.com/extant2000/<image>
registry-token: ${{ secrets.REGISTRY_TOKEN }}
Library, after the tests:
- uses: https://git.extant2000.com/extant2000/ci-shared/release@v1
with:
npm-token: ${{ secrets.NPM_TOKEN }}
The job token (gitea.token) creates the tag and the release; no extra secret. Outputs:
released, version, tag, previous.
Versioning
Workflows pin @v1. Compatible changes move the v1 tag; breaking changes get v2.
Tests
bash test/release.test.sh (runs in the test workflow).
Languages
Shell
100%