Skip to content

Check Package Version Upgraded

Actions
Checks if the version in package.json of source branch is greater than the version in the target branch
v1.0.3
Latest
Star (0)

package-version-upgrade-check

This action check if the package version in the package.json file of source branch is greater than the package version in the package.json file of target branch.

About me

I am a full-stack software engineer. I have experience in building and maintaining various projects. I am always looking for ways to automate and improve the development process.

Contact Information

If you have any questions, suggestions or need help, please follow and contact me at:

Example usage:

1. Applies to pull_request to main branch only.

name: If the package version is greater than the main branch version

on:
  pull_request:
    branches:
      - main

jobs:
  #  This job checks if the package version is greater than the main branch version and checks if the package can be built.
  version_check:
    if: ${{ github.event_name == 'pull_request' }}
    runs-on: ubuntu-latest
    steps:
      - uses: bakhrom-akbarov/package-version-upgrade-check@v1.0.3

2. Applies to pull_request to any branch.

name: If the package version is greater than the target branch version

on:
  pull_request
    branches:
      - '**'

jobs:
  #  This job checks if the package version is greater than the main branch version and checks if the package can be built.
  version_check:
    if: ${{ github.event_name == 'pull_request' }}
    runs-on: ubuntu-latest
    steps:
      - uses: bakhrom-akbarov/package-version-upgrade-check@v1.0.3

Check Package Version Upgraded 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

Checks if the version in package.json of source branch is greater than the version in the target branch
v1.0.3
Latest

Check Package Version Upgraded 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.