Skip to content

bakhrom-akbarov/package-version-upgrade-check

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Packages

No packages published