Skip to content

Commit e8a5330

Browse files
committed
cleaner planned publishes log
1 parent fd71624 commit e8a5330

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,13 @@ jobs:
103103
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > ~/.npmrc
104104

105105
- name: List changed packages
106-
run: yarn lerna exec --concurrency 1 'if [ "$(npm view $LERNA_PACKAGE_NAME version --registry=https://npm.pkg.github.com/ 2>/dev/null || echo "0.0.0")" != "$(node -p "require(\"./package.json\").version")" ]; then echo "Will publish $LERNA_PACKAGE_NAME@$(node -p "require(\"./package.json\").version")"; fi'
106+
run: |
107+
echo "### Following packages will be published" >> $GITHUB_STEP_SUMMARY
108+
yarn lerna exec --loglevel silent --concurrency 1 -- \
109+
'VERSION=$(node -p "require(\"./package.json\").version"); \
110+
if [ "$(npm view $LERNA_PACKAGE_NAME version --registry=https://npm.pkg.github.com/ 2>/dev/null || echo "0.0.0")" != "$VERSION" ]; then \
111+
echo "- **$LERNA_PACKAGE_NAME** - will publish version $VERSION" >> $GITHUB_STEP_SUMMARY; \
112+
fi'
107113
108114
publish:
109115
needs: prepare-publish

0 commit comments

Comments
 (0)