We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b711f31 commit a0e94b8Copy full SHA for a0e94b8
.github/workflows/sync-node-version.yml
@@ -53,11 +53,11 @@ jobs:
53
echo "Publishing directory: $dir"
54
npm view $pkg version | IFS=. read MAJOR MINOR PATCH
55
echo $VERSION | IFS=. read NEWMAJ NEWMIN NEWPATCH
56
- if [ $NEWMAJOR -gt $MAJOR -o ( $NEWMAJOR = $MAJOR -a $NEWMINOR -gt $MINOR ) -o ( $NEWMAJOR = $MAJOR -a $NEWMINOR = $MINOR -a $NEWPATCH -gt $PATCH) ]; then
+ if [ $NEWMAJOR -gt $MAJOR ] || [ $NEWMAJOR = $MAJOR -a $NEWMINOR -gt $MINOR ] || [ $NEWMAJOR = $MAJOR -a $NEWMINOR = $MINOR -a $NEWPATCH -gt $PATCH ]; then
57
TAG=latest
58
else
59
TAG=v$NEWMAJOR-latest
60
- vi
+ fi
61
(
62
cd "$dir"
63
npm publish --tag="$TAG"
0 commit comments