Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/miguelripoll23/get-next-version
Bump version action that uses pull requests labels to easily publish a release.
https://github.com/miguelripoll23/get-next-version
github-actions semver version
Last synced: about 1 month ago
JSON representation
Bump version action that uses pull requests labels to easily publish a release.
- Host: GitHub
- URL: https://github.com/miguelripoll23/get-next-version
- Owner: MiguelRipoll23
- License: mit
- Created: 2023-04-02T13:45:12.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-09-04T13:24:33.000Z (4 months ago)
- Last Synced: 2024-11-04T15:51:35.993Z (about 2 months ago)
- Topics: github-actions, semver, version
- Language: TypeScript
- Homepage:
- Size: 2.44 MB
- Stars: 6
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
README
# get-next-version
Bump versions with the help of semantic versioning and pull requests labels.
Latest tag name: v1.0.0
Merged pull requests (4)
✨ Add feature requested way too many times
🚫 Update developer dependency
🛠️ Fix severe bug found after decades
🚫 Improve code formatter
Next version: v1.1.0Voilà! That's your next version.
## Usage
bump-version:
name: Bump version
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: writesteps:
- name: Setup node
uses: actions/[email protected]- name: Get next version
uses: MiguelRipoll23/[email protected]
id: get-next-version- name: Update version
run: |
npm version --no-git-tag-version ${{ env.NEXT_VERSION }}
env:
NEXT_VERSION: ${{ steps.get-next-version.outputs.next-version }}- name: Create pull request
uses: peter-evans/create-pull-request@v6
with:
branch: version/${{ steps.get-next-version.outputs.next-version }}
commit-message: ${{ steps.get-next-version.outputs.next-version }}
title: Bump version to ${{ steps.get-next-version.outputs.next-version }}
body: Automated pull request triggered by a new release.
labels: new-release,ignore-for-release
draft: true**See the [examples/](/examples/) directory for complete examples!**
### Inputs
| Name | Description | Default |
| ------------------------- | ------------------------------------------------------------------- | ------------------- |
| github-token | Token from GitHub Actions or a Personal Access Token | github.token |
| channel | Target channel (alpha/beta/stable/custom) of the version | stable |
| new-build-for-prerelease | Create a new build if version name contains a prerelease identifier | true |
| pull_requests_base_branch | Base branch used during pull requests search | github.ref |
| major-labels | Comma separated list of labels for major releases | breaking-change |
| minor-labels | Comma separated list of labels for minor releases | feature,enhancement |
| patch-labels | Comma separated list of labels for patch releases | bugfix,dependencies |### Outputs
| Name | Description |
| ------------ | ------------------------------------- |
| next-version | Next version to use for a new release |## Feedback
Any feedback or contributions to this repository are welcome! Please open an
issue or a pull request describing your suggestions along your use case.