Skip to content

Commit

Permalink
Merge pull request #15 from restfulhead/main
Browse files Browse the repository at this point in the history
chore: prepare release
  • Loading branch information
restfulhead authored Feb 16, 2024
2 parents bd4565f + b6551d3 commit 6951124
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,11 @@ jobs:
git push "https://$GITHUB_ACTOR:[email protected]/$GITHUB_REPOSITORY" HEAD:${{ steps.get-workspaces.outputs.branch }} --follow-tags
npx auto release --use-version $NEW_TAG $FROM_PARAM --base-branch ${{ steps.get-workspaces.outputs.branch }}
IS_PRIVATE=`node -pe "require('./package.json').private"`
rm -rf .git
if [ "$IS_PRIVATE" != "true" ]; then
cd $topdir
echo "publishing $workspace/dist"
npm publish ./$workspace/dist
npm publish ./dist
echo "::notice title=🚀 ${PCKG_NAME} v$NEW_VERSION_NO::Package versioned and published"
fi
rm -rf .git
else
echo "::notice title=Versioning of $PCKG_NAME skipped::No relevant changes detected."
exit 1
Expand Down

0 comments on commit 6951124

Please sign in to comment.