Repository navigation
ci: test pull requests and release main with semantic-release - #1
Merged
Merged
Conversation
added 4 commits
October 15, 2026 15:24
Swift 6.2 (Xcode 26.3) rejects the mixed Double/CGFloat arithmetic in WidgetPopup.toggle as ambiguous, so the package and its tests no longer compiled. Convert the popup's shadow inset and width to CGFloat explicitly.
scripts/set-version.sh writes a version to CFBundleShortVersionString and CFBundleVersion in Resources/Info.plist, or in the plist given as its second argument. It edits the values in place to keep the file's layout, and leaves the file untouched when either key is missing.
Pull requests and pushes to main build and test the package on macOS. Pull requests also lint their commit messages and title with commitlint. After the tests pass on main, semantic-release derives the next version from the conventional commits, sets it in Info.plist, updates CHANGELOG.md, tags the release and publishes its notes on GitHub, using only the workflow's GITHUB_TOKEN.
M4n0x
force-pushed
the
ci/test-and-release
branch
from
October 15, 2026 13:26
66fb157 to
84af68d
Compare
|
🎉 This PR is included in version 0.1.1 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This was referenced Oct 15, 2026
|
🎉 This PR is included in version 0.10.0 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
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.
Summary
maindoesn't compile with Swift 6.2 (Xcode 26.3).WidgetPopup.swiftmixesDoubleandCGFloatinmin(...), and the compiler reportsambiguous use of operator '-'plus 7 follow-on errors. The popup inset and width are now converted toCGFloatexplicitly..github/workflows/ci.yml):macos-26for every PR and every push tomain:swift build --build-tests, thenswift test.mainafter the tests pass. semantic-release sets the version inResources/Info.plist, updatesCHANGELOG.md, commits both aschore(release): x.y.z [skip ci], tagsvx.y.zand publishes the notes as a GitHub release. It only uses the workflow'sGITHUB_TOKEN, so no secrets are needed.scripts/set-version.shsetsCFBundleShortVersionStringandCFBundleVersionwithout reformatting the plist, and fails without writing anything if a key is missing. It has Swift tests inReleaseTests.swift.Versioning
With no tags, semantic-release would make its first release 1.0.0. I pushed a
v0.1.0tag ona405ed4(the currentmain) to matchInfo.plist, so versions continue from there.Merge this PR with a merge commit or rebase so the
fix:commit survives. That makes the first automated release 0.1.1, which runs the whole pipeline once. A squash merge would use theci:title and release nothing until the nextfeat/fix.DMG (not included)
The DMG is being built separately. Two config changes will hook it into releases:
.releaserc.json, changeprepareCmdto./scripts/set-version.sh ${nextRelease.version} && ./scripts/package.sh."@semantic-release/github"to["@semantic-release/github", { "assets": [{ "path": "dist/StableBar.dmg" }] }].The release job already runs on macOS, so no workflow change is needed.
Testing
HOMEpointed at an empty directory, all 20 tests pass. With my normal shell profile,scriptRecoversAfterACommandFailurefails (see Notes).chore(release)commit containingCHANGELOG.mdand a two-lineInfo.plistchange, and av0.1.1tag. The rehearsal caught thatconventional-changelog-conventionalcommits@10can't render with the latest release-notes generator (writer 8), so the preset is pinned to^9.3.1.npm audit signaturesall pass.Notes
scriptRecoversAfterACommandFailurepolls for at most ~2 s, but it needs two/bin/zsh -lcruns. When~/.zprofileis slow (~1.3 s per login shell on my Mac), the second run doesn't finish in time. This predates this PR and is unchanged here. Raising the test's wait would fix it.npm auditreports advisories in semantic-release's dependency tree. Most are in the npm CLI bundled with its npm plugin, which this config doesn't load. The rest are DoS-type issues inbracesandmicromatch, which have no patched release yet. These are CI-only dev dependencies that only process this repo's own commits and config.