Skip to content

File Version Bumper

Actions
Bump version in any JSON or TOML file with this simple Action
v1.0.0
Latest
Star (0)

File Version Bumper

Bump version in any JSON or TOML file with this simple Action

CI Super-Linter CodeQL

Example

name: Release

on:
  push:
    tags: ['*']

jobs:
  bump:
    name: Bump Version
    runs-on: ubuntu-latest

    steps:
      - uses: actions/checkout@v4

      - name: Bump Cargo version
        uses: DervexDev/file-version-bumper@v1
        with:
          path: ./Cargo.toml

      - name: Update Cargo lock
        run: cargo update --workspace

Inputs

Name Required Description
path true Path to the JSON or TOML file you want to bump
version false The version to bump to, defaults to the tag name
format false The format of the file you want to bump, defaults to the file extension

Outputs

Name Description
new_version New version of the file
old_version Previous version of the file

Important

Lock files won't update automatically!

You will need to add extra step that runs special command e.g. cargo update --workspace or npm i --package-lock-only

File Version Bumper is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Bump version in any JSON or TOML file with this simple Action
v1.0.0
Latest

File Version Bumper is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.