Files
plebeian-signer/.claude/commands/release.md
mleku 3c63e6555c Rename project from Gooti to Plebian Signer and add Claude Code config
- Rename all gooti-* files to plebian-signer-* across Chrome and Firefox
- Rename GootiMetaHandler to SignerMetaHandler in common library
- Update all references to use new naming convention
- Add CLAUDE.md with project build/architecture documentation
- Add Claude Code release command tailored for this npm/Angular project
- Add NWC-IMPLEMENTATION.md design document
- Add Claude skills for nostr, typescript, react, svelte, and applesauce libs
- Update README and various component templates with new branding

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2025-12-17 09:29:00 +01:00

2.0 KiB

Release Command

Review all changes in the repository and create a release with proper commit message, version tag, and push to origin.

Argument: $ARGUMENTS

The argument should be one of:

  • patch - Bump the patch version (e.g., 0.0.4 -> 0.0.5)
  • minor - Bump the minor version and reset patch to 0 (e.g., 0.0.4 -> 0.1.0)
  • major - Bump the major version and reset minor/patch to 0 (e.g., 0.0.4 -> 1.0.0)

If no argument provided, default to patch.

Steps to perform:

  1. Read the current version from package.json (the version field)

  2. Calculate the new version based on the argument:

    • Parse the current version (format: MAJOR.MINOR.PATCH)
    • If patch: increment PATCH by 1
    • If minor: increment MINOR by 1, set PATCH to 0
    • If major: increment MAJOR by 1, set MINOR and PATCH to 0
  3. Update package.json with the new version in all three places:

    • version
    • custom.chrome.version
    • custom.firefox.version
  4. Review changes using git status and git diff --stat HEAD

  5. Verify the build before committing:

    npm run lint
    npm run build:chrome
    npm run build:firefox
    

    If any step fails, fix issues before proceeding.

  6. Compose a commit message following this format:

    • First line: 72 chars max, imperative mood summary (e.g., "Release v0.0.5")
    • Blank line
    • Bullet points describing each significant change
    • "Files modified:" section listing affected files
    • Footer with Claude Code attribution
  7. Stage all changes with git add -A

  8. Create the commit with the composed message

  9. Create a git tag with the new version prefixed with 'v' (e.g., v0.0.5)

  10. Push to origin with tags:

    git push origin main --tags
    
  11. Report completion with the new version and commit hash

Important:

  • This is a browser extension with separate Chrome and Firefox builds
  • All three version fields in package.json must be updated together
  • Always verify both Chrome and Firefox builds compile before committing