Skip to content

Commit

Permalink
Update version checking script
Browse files Browse the repository at this point in the history
  • Loading branch information
Peterclark1996 committed Jun 9, 2024
1 parent eec5043 commit 5ae00d7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@ on:
push:
branches:
- main
paths:
- 'packages/s2ts/package.json'
- 'packages/create-s2ts/package.json'
# paths:
# - 'packages/s2ts/package.json'
# - 'packages/create-s2ts/package.json'

jobs:
publish-s2ts:
Expand Down Expand Up @@ -40,7 +40,9 @@ jobs:
echo "Published version: $PUBLISHED_VERSION"
if [ "$CURRENT_VERSION" == "$PUBLISHED_VERSION" ]; then
echo "Version has not changed. Exiting."
exit 0
echo "::set-output name=version-changed::false"
else
echo "::set-output name=version-changed::true"
- name: Publish to npm
if: steps.check-version.outputs.version != steps.get-published-version.outputs.version
Expand Down Expand Up @@ -80,7 +82,9 @@ jobs:
echo "Published version: $PUBLISHED_VERSION"
if [ "$CURRENT_VERSION" == "$PUBLISHED_VERSION" ]; then
echo "Version has not changed. Exiting."
exit 0
echo "::set-output name=version-changed::false"
else
echo "::set-output name=version-changed::true"
- name: Publish to npm
if: steps.check-version.outputs.version != steps.get-published-version.outputs.version
Expand Down

0 comments on commit 5ae00d7

Please sign in to comment.