Skip to content

Commit

Permalink
Print a info message when running the workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
dcodeIO committed Oct 25, 2020
1 parent 82a6c84 commit 66a987e
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,5 +21,10 @@ jobs:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "Next version will be: $(node bin/aspublish.js --version)"
node bin/aspublish.js
VERSION=$(node bin/aspublish.js --version)
if [ -z "$VERSION" ]; then
echo "Changes do not trigger a release"
else
echo "Publishing new version: $VERSION"
node bin/aspublish.js
fi

0 comments on commit 66a987e

Please sign in to comment.