Skip to content

Commit

Permalink
fix(publishing): Get publish git-tag from ${package}/package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
christopherthielen committed Jul 19, 2021
1 parent 85e3e99 commit 36f5889
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/gha_publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ for PACKAGEJSON in */package.json ; do
HAS_PKG_BUMP=$(git diff HEAD^ -- "${PACKAGEJSON}" | grep -c '"version"')
if [ "$HAS_PKG_BUMP" -ne 0 ] ; then
echo "Deck package publisher ---> Version bump detected in $PACKAGEJSON"
TAG=$(jq -r '.name + "@" + .version' < package.json)
TAG=$(jq -r '.name + "@" + .version' < $PACKAGEJSON)
git tag -a $TAG -m "Publish $TAG to NPM"
git push origin $TAG
BUMPS=yes
Expand Down

0 comments on commit 36f5889

Please sign in to comment.