https://github.com/action-pack/bump
Action to generate a version number.
https://github.com/action-pack/bump
bump bumpversion github-action github-actions versioning
Last synced: 5 months ago
JSON representation
Action to generate a version number.
- Host: GitHub
- URL: https://github.com/action-pack/bump
- Owner: action-pack
- License: mit
- Created: 2023-05-23T10:08:20.000Z (over 2 years ago)
- Default Branch: master
- Last Pushed: 2025-05-06T10:47:17.000Z (5 months ago)
- Last Synced: 2025-05-06T11:53:47.117Z (5 months ago)
- Topics: bump, bumpversion, github-action, github-actions, versioning
- Language: JavaScript
- Homepage:
- Size: 812 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 1
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
Bump version
[](https://github.com/action-pack/bump/)
[](https://github.com/marketplace/actions/bump-version-number)
[](https://github.com/action-pack/bump/)
Action to generate a version number using repository variables.
## Features ✨
- Creates two variables, `vars.MAJOR` and `vars.MINOR`
- Increments the minor version each time the action is called
- Increments the major version as soon as minor hits 100.## Usage 🚀
```yaml
- uses: action-pack/bump@v2
with:
token: ${{ secrets.REPO_ACCESS_TOKEN }}
- run: echo ${{ vars.MAJOR }}.${{ vars.MINOR }}
```## Inputs 📝
### token
**Required** `String` Repository [Access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token)
### owner
**Optional** `String` Owners name.
### repository
**Optional** `String` Repository name.
### org
**Optional** `Boolean` Indicates the repo is an [organization](https://docs.github.com/en/github/setting-up-and-managing-organizations-and-teams/about-organizations).
## FAQ 💬
* ### Why do I get the error '*Resource not accessible by integration*'?
This will happen if you use ```secrets.GITHUB_TOKEN```.
You need to create a [personal access token](https://docs.github.com/en/github/authenticating-to-github/creating-a-personal-access-token) instead.
Go to your Github settings, select 'Developer settings' --> 'Personal access tokens' --> 'Tokens (classic)' and create a new token. Store its value in a secret, for example ```MY_TOKEN```.
Then refer to it like this:
```yaml
token: ${{ secrets.MY_TOKEN }}
```## Stars 🌟
[](https://starchart.cc/action-pack/bump)