This is a Simple Action that increments the version to the most recent tag found when called. This supports:
- Rust/Cargo (
cargo
). - Node/NPM (
npm
).
Feel free to open a pull request if you would like to support additional frameworks!
Add this to your main.yml
file (or whatever your workflow is called).
Note that you will need to have an action that performs a pre-commit (stage, commit) and push:
name: my-workflow
on: [push]
jobs:
autoversion:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- uses: autosuite/autoversion@master
with:
managers: npm, cargo
- uses: autosuite/autocommit@master
- uses: ad-m/github-push-action@master
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
You can see all configuration in the action.yml file.
Variable | Value | Example | Default | Required? |
---|---|---|---|---|
managers | Comma-separated enum (see above.) | npm, cargo |
npm |
Yes. |
There is obviously only one set of version tags in any git
repository, meaning you cannot do something like have a
frontend and backend of an application in the same repository while they have different versions. You can, however,
force them to always keep the same version, even if they do not change between different tags.
If you would like to contribute to this project, please read our contributors documentation and our code of conduct.
The license we use for this project is defined in the license file.