Skip to content

Commit 66a987e

Browse files
committed
Print a info message when running the workflow
1 parent 82a6c84 commit 66a987e

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/publish.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -21,5 +21,10 @@ jobs:
2121
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2222
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
2323
run: |
24-
echo "Next version will be: $(node bin/aspublish.js --version)"
25-
node bin/aspublish.js
24+
VERSION=$(node bin/aspublish.js --version)
25+
if [ -z "$VERSION" ]; then
26+
echo "Changes do not trigger a release"
27+
else
28+
echo "Publishing new version: $VERSION"
29+
node bin/aspublish.js
30+
fi

0 commit comments

Comments
 (0)