joshjohanning/npm-version-check-action

GitHub Action that validates npm package version increments in pull requests to ensure proper semantic versioning

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Stale
License
None
namedescriptionrequireddefault
package-pathPath to package.json file (relative to repository root)nopackage.json
tag-prefixPrefix for version tags (e.g., "v" for v1.0.0)nov
skip-files-checkAlways run version check regardless of which files changed. Default (false) only checks if project source files changed, skipping when only tests/docs/configs are modifiednofalse
include-dev-dependenciesWhether devDependency changes should trigger version bump requirement. Default (false) ignores devDependencies changes and skips package-lock.json analysis when only devDeps change, preventing false positives from dev dependency lock file updatesnofalse
skip-version-keywordKeyword in commit messages to skip version check for that commit. Files changed in commits containing this keyword are excluded from the version check. Set to empty string to disable.no[skip version]
skip-version-consistency-checkSkip the check that validates package.json and package-lock.json have matching versions. Useful if you intentionally have different versions or do not use package-lock.json.nofalse
skip-major-on-actions-runtime-changeSkip the check that requires a major version bump when action.yml changes its Node.js Actions runtime version (runs.using). Default (false) enforces major bumps for runtime changes since they are breaking changes for action consumers.nofalse
skip-sequential-version-checkSkip the check that validates version increments are sequential (e.g., 4.0.0 to 4.1.0 not 4.2.0). Default (false) enforces sequential increments.nofalse
tokenGitHub token for API access (required). Used for fetching PR diff, repository tags, and commit analysis.yes${{ github.token }}
namedescription
version-changedWhether the version was changed
current-versionCurrent version from package.json
previous-versionPrevious version from latest git tag
runtime-changedWhether the Node.js Actions runtime version in action.yml was changed
version-increment-typeThe type of version increment detected: major, minor, or patch (empty when no numeric bump type is detected, e.g., first release or prerelease-only changes)