#patch #automate #projects #numbers #versioning

app patch-release-me

A tool to automate patching of your projects before you release them

5 releases

0.1.5 May 30, 2024
0.1.4 May 30, 2024
0.1.3 May 29, 2024
0.1.2 May 23, 2024
0.1.0 May 23, 2024

#3 in #automate

Download history 180/week @ 2024-05-20 377/week @ 2024-05-27 20/week @ 2024-06-03 16/week @ 2024-06-10

593 downloads per month

MIT license

553 lines

Patch Release Me

GitHub Crates.io Version Crates.io Downloads (recent) GitHub Stars Licence

This is a tool I built to help maintain a number of code bases.

✨ Features

  • Configuration as Code
    • Define how to patch your code before release
  • Versioning Helpers

📦 Usage

You can install / use the tool is a number of different ways

Cargo / Crates.io

cargo install patch-release-me

GitHub Actions

- name: "Patch Release Me"
  uses: 42ByteLabs/patch-release-me@v0.1.5
    # Bump (patch)
    mode: bump

Container Image

Pull Container from GitHub:

docker pull ghcr.io/42bytelabs/patch-release-me:0.1.5

Run Image:*

docker run -it --rm -v $PWD:/app ghcr.io/42bytelabs/patch-release-me:0.1.5 patch-release-me --help

Manual Install

cargo install --git https://github.com/42ByteLabs/patch-release-me


# [optional]: name of the software you are releasing
name: "patch-release-me"
#[optional]: Are the default release locations added
default: true

# Patch Locations
  # Array of objects
  # Name of the patch
  - name: "Docs Patch"
      # Glob supported path to the files you want to patch
      - 'Cargo.toml'
    # [optional]: Exclude dirs/files
      - '/target/'
    # Patterns to use to patch the files
      # Regex Patterns to find what version you want to patch which requires
      # a capture group `(...)`. The patterns are checks are runtime.
      - 'version = "([0-9]\.[0-9]\.[0.9])"'

🦸 Support

Please create GitHub Issues if there are bugs or feature requests.

This project uses Semantic Versioning (v2) and with major releases, breaking changes will occur.

📓 License

This project is licensed under the terms of the MIT open source license. Please refer to MIT for the full terms.


~261K SLoC