Release
Creates a new versioned release of the Soccer Mod plugin. Updates version strings in all required files, commits, tags, and pushes to trigger the GitHub Actions release workflow.
Usage
/release <version>
Where <version> is the version number without the v prefix (e.g., 1.4.24).
Instructions
- •
Validate the version argument is provided and follows semver-ish format (e.g.,
1.4.24) - •
Check CHANGELOG.md for an entry matching
## <version>. If no entry exists, stop and ask the user to write one first. The changelog entry is required before releasing. - •
Update version in all three locations:
- •
addons/sourcemod/scripting/soccer_mod.sp- Update#define PLUGIN_VERSION "<version>"(line 4) - •
package.json- Update"version": "<version>" - •
CHANGELOG.md- Should already have the entry (verified in step 2)
- •
- •
Build to verify - Run
npm run buildto confirm the plugin compiles successfully with the new version. If build fails, stop and report the error. - •
Show the user a summary of all changes made and ask for confirmation before committing.
- •
Commit and tag:
- •Stage the modified files:
soccer_mod.sp,package.json,CHANGELOG.md(and any other changed files the user confirms) - •Commit with message:
Release v<version> - •Create git tag:
v<version>
- •Stage the modified files:
- •
Push to remote:
- •
git push - •
git push origin v<version> - •This triggers the GitHub Actions workflow that compiles, packages, and creates the GitHub Release
- •
- •
Confirm the push succeeded and remind the user to check the GitHub Actions tab for the release build status.
Example
/release 1.4.24
This will:
- •Verify
CHANGELOG.mdhas a## 1.4.24entry - •Update
PLUGIN_VERSIONto"1.4.24"in soccer_mod.sp - •Update
"version"to"1.4.24"in package.json - •Build with
npm run build - •Commit as "Release v1.4.24"
- •Tag as
v1.4.24 - •Push commit and tag to origin