Skip to content

Commit da2e9bc

Browse files
committed
fix(publish): version exists variable wasn't available
1 parent b823588 commit da2e9bc

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

.github/workflows/npm-publish.yml

+2
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,11 @@ jobs:
3333
PACKAGE_VERSION=$(node -p "require('./package.json').version")
3434
if npm view @opencrvs/mosip@$PACKAGE_VERSION > /dev/null 2>&1; then
3535
echo "Version $PACKAGE_VERSION already exists on npm."
36+
echo "version-exists=true" >> $GITHUB_OUTPUT
3637
exit 0
3738
else
3839
echo "Version $PACKAGE_VERSION does not exist on npm."
40+
echo "version-exists=false" >> $GITHUB_OUTPUT
3941
fi
4042
working-directory: packages/country-config
4143

0 commit comments

Comments
 (0)