-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15 from restfulhead/main
chore: prepare release
- Loading branch information
Showing
1 changed file
with
2 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|