Skip to content
info

GitHub Action

Check if version bumped

v2.0.3 Latest version

Check if version bumped

info

Check if version bumped

Checks if version is bumped in package.json in pull requests

Installation

Copy and paste the following snippet into your .yml file.

              

- name: Check if version bumped

uses: del-systems/check-if-version-bumped@v2.0.3

Learn more about this action in del-systems/check-if-version-bumped

Choose a version

Check if package.json version is bumped

This action checks if package.json was bumped only in pull requests.

Inputs

token

Optional. Required for private repositories for retrieving package.json file from base sha

path

Optional. Specify where to obtain package.json file. Path is relative to git root. Do not start with / (slash). Defaults to package.json

Outputs

None

Releases and node versions

Release Node version
2.x Node 20
1.x Node 16

Example usage

- uses: del-systems/check-if-version-bumped@v2
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    path: "server/package.json"