I’ve created a GitHub Action called Release on Merge Action. As the name implies, it creates a GitHub release and git tag when the action is executed, usually on merge to the main branch.
Here's a simple example of how to use it:
on:
push:
branches:
- main
jobs:
release-on-merge:
runs-on: ubuntu-latest
permissions:
contents: write
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
steps:
- uses: dexwritescode/release-on-merge-action@v1
The snippet above will create a new release after it bumps the patch number of the previous version.
This Action follows semver versioning, and can be configured to bump the major, minor, or patch number. Check out the action page for a full list of configuration parameters.
Top comments (0)