Skip to content

Commit 666df24

Browse files
authored
Merge pull request #25 from jtpio/check-npm
Fix Check Release for NPM-Only Packages
2 parents 90a2724 + 12c0703 commit 666df24

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

.github/actions/check-release/action.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,12 @@ runs:
2525
export RH_DRY_RUN=true
2626
export RH_REF=${GITHUB_REF}
2727
28+
# check for npm-only package
29+
if [[ ! -f setup.py && -f package.json ]]; then
30+
export RH_VERSION_SPEC=patch
31+
export RH_POST_VERSION_SPEC=
32+
fi
33+
2834
if [ ! -z ${GITHUB_BASE_REF} ]; then
2935
echo "Using GITHUB_BASE_REF: ${GITHUB_BASE_REF}"
3036
export RH_BRANCH=${GITHUB_BASE_REF}

0 commit comments

Comments
 (0)