Skip to content

Commit

Permalink
Fix version check
Browse files Browse the repository at this point in the history
  • Loading branch information
ajthinking committed Aug 1, 2023
1 parent 7e13011 commit be0dd38
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish_core.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
id: check
run: |
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
echo "::set-output name=version::$PACKAGE_VERSION"
RESPONSE=$(curl --silent --head --fail https://registry.npmjs.org/@data-story/core/$PACKAGE_VERSION)
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
RESPONSE=$(curl --silent --head https://registry.npmjs.org/@data-story/core/$PACKAGE_VERSION) || true
if [ $? -eq 0 ]; then
echo "Version $PACKAGE_VERSION already exists. Exiting the action script."
exit 0
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/publish_ui.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
id: check
run: |
PACKAGE_VERSION=$(node -p -e "require('./package.json').version")
echo "::set-output name=version::$PACKAGE_VERSION"
RESPONSE=$(curl --silent --head --fail https://registry.npmjs.org/@data-story/ui/$PACKAGE_VERSION)
echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
RESPONSE=$(curl --silent --head https://registry.npmjs.org/@data-story/ui/$PACKAGE_VERSION) || true
if [ $? -eq 0 ]; then
echo "Version $PACKAGE_VERSION already exists. Exiting the action script."
exit 0
Expand Down

0 comments on commit be0dd38

Please sign in to comment.