From 3809947c44aaa73b05ea287d61a569a854797ab7 Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Thu, 28 May 2026 11:51:18 +0200 Subject: [PATCH 1/2] ci: drop @semantic-release/git so releases work under branch protection The git plugin pushes a `chore(release): X.Y.Z [skip ci]` commit back to `main`, which fails when the branch is protected. Tags and GitHub Releases are still created by `@semantic-release/github` via the API, which is not subject to branch-push protection. Trade-offs: - CHANGELOG.md is no longer maintained in the repo (release notes still live on each GitHub Release page). - MARKETING_VERSION in the pbxproj stays static. The build pipeline rewrites it via sed before xcodebuild, so the shipped .app has the correct version regardless. Also dropped: - @semantic-release/changelog (would write CHANGELOG.md that never gets persisted) from both npm install steps. - The release job's `cp artifacts/project.pbxproj` step, which only existed so the git plugin had the version-bumped pbxproj to commit. --- .github/workflows/release.yml | 8 -------- .releaserc.yml | 8 -------- 2 files changed, 16 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6c98aca..645643c 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,8 +36,6 @@ jobs: run: | npm install -g \ semantic-release@24 \ - @semantic-release/changelog@6 \ - @semantic-release/git@10 \ @semantic-release/github@11 - name: Determine version @@ -145,14 +143,8 @@ jobs: run: | npm install -g \ semantic-release@24 \ - @semantic-release/changelog@6 \ - @semantic-release/git@10 \ @semantic-release/github@11 - - name: Replace project.pbxproj - run: | - cp -f artifacts/project.pbxproj "Blue Switch.xcodeproj/project.pbxproj" - - name: Release env: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} diff --git a/.releaserc.yml b/.releaserc.yml index 46c37cf..385703d 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -4,14 +4,6 @@ [ "@semantic-release/commit-analyzer", "@semantic-release/release-notes-generator", - "@semantic-release/changelog", - [ - "@semantic-release/git", - { - "assets": ["Blue Switch.xcodeproj/project.pbxproj", "CHANGELOG.md"], - "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}", - }, - ], [ "@semantic-release/github", { From b9866396bfca014a7a12811360b1c4f82794872c Mon Sep 17 00:00:00 2001 From: Joshua Rogers Date: Thu, 28 May 2026 11:59:24 +0200 Subject: [PATCH 2/2] chore: delete CHANGELOG.md (no longer auto-maintained) Since @semantic-release/git was removed, nothing regenerates CHANGELOG.md on each release. Release notes still live on the GitHub Releases page; keeping the file in-tree would just leave a permanently stale snapshot. --- CHANGELOG.md | 13 ------------- 1 file changed, 13 deletions(-) delete mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 653602d..0000000 --- a/CHANGELOG.md +++ /dev/null @@ -1,13 +0,0 @@ -# 1.0.0 (2026-05-28) - - -### Bug Fixes - -* **model:** validate decoded peripheral MAC and clamp name length ([54fcae5](https://github.com/MegaManSec/blue-switch/commit/54fcae51dea242de4f2eb98f1d12bb8fbf506e9e)) - - -### Features - -* initial commit ([872a902](https://github.com/MegaManSec/blue-switch/commit/872a902ceedd5aa9bfff93a5fe673d8f7d360206)) -* **menubar:** adapt status bar icon to dark and light mode ([14f7639](https://github.com/MegaManSec/blue-switch/commit/14f7639d8485158231d70f9394e3693ddcc34779)), closes [#1](https://github.com/MegaManSec/blue-switch/issues/1) -* **network:** authenticate and encrypt peer protocol with shared-secret pairing ([a5dbf48](https://github.com/MegaManSec/blue-switch/commit/a5dbf487a448496a80265af9ba3a3fec8ec42f40)), closes [#1](https://github.com/MegaManSec/blue-switch/issues/1) [#2](https://github.com/MegaManSec/blue-switch/issues/2) [#3](https://github.com/MegaManSec/blue-switch/issues/3) [#4](https://github.com/MegaManSec/blue-switch/issues/4) [#5](https://github.com/MegaManSec/blue-switch/issues/5)