You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(scaffold): mcp-server release is PAT-free and protected-main-safe [skip version] (#78)
The mcp-server release template pushed a version-bump commit to main, which
the standard main-protection ruleset (empty bypass) rejects with 403, so a
born repo could never release/publish. Replace with the validated tag-only
model: bump the version in the PR; release.yml uses the default GITHUB_TOKEN
to push only tags (never main) and create the release, then dispatches
publish.yml (a GITHUB_TOKEN release does not trigger it; publish.yml is
idempotent). No dependency on a personal access token.
AGENTS.md.j2 and CLAUDE.md.j2 mcp-server version guidance updated to match
(bump in the PR; CI never writes to main). No STANDARDS_VERSION/VERSION change.
Signed-off-by: fOuttaMyPaint <tmhospitalitystrategies@gmail.com>
Copy file name to clipboardExpand all lines: scaffold/templates/AGENTS.md.j2
+5-3Lines changed: 5 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -78,7 +78,7 @@ Builds and runs the test suite on Node 20 and 22:
78
78
79
79
### `release.yml` (runs on push to main)
80
80
81
-
Conventional-commit auto-bump: determines the bump type from commit messages since the last tag, updates `package.json`, creates a git tag and GitHub Release.
81
+
Reads the version from `package.json` and, if there is no matching tag yet, pushes the `v<version>` tag (plus the floating `vMAJOR` and `vMAJOR.MINOR` tags), creates a GitHub Release, and dispatches `publish.yml`. It only pushes tags and never writes to `main`; bump the version in your PR.
82
82
83
83
### `publish.yml` (runs on release published or workflow_dispatch)
84
84
@@ -105,11 +105,13 @@ Keeps repository labels in sync.
105
105
106
106
{%iftype == 'cursor-plugin'%}
107
107
- The **source of truth** for the current version is `.cursor-plugin/plugin.json`.
108
+
- The release workflow auto-bumps it and the README badge on every qualifying push to main.
109
+
- Never manually change the version.
108
110
{%else%}
109
111
- The **source of truth** for the current version is `package.json`.
112
+
- Bump it in your PR with `npm version <patch|minor|major> --no-git-tag-version` (keeps the lockfile in sync) and update the README badge, following conventional-commit intent.
113
+
- On merge, `release.yml` tags that version and publishes it. `main` is protected and is never written to by CI.
110
114
{%endif%}
111
-
- The release workflow auto-bumps it and the README badge on every qualifying push to main.
0 commit comments