Skip to content

Commit a0e94b8

Browse files
committed
ALMOST HAD IT IN ONE
1 parent b711f31 commit a0e94b8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/sync-node-version.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,11 @@ jobs:
5353
echo "Publishing directory: $dir"
5454
npm view $pkg version | IFS=. read MAJOR MINOR PATCH
5555
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
56+
if [ $NEWMAJOR -gt $MAJOR ] || [ $NEWMAJOR = $MAJOR -a $NEWMINOR -gt $MINOR ] || [ $NEWMAJOR = $MAJOR -a $NEWMINOR = $MINOR -a $NEWPATCH -gt $PATCH ]; then
5757
TAG=latest
5858
else
5959
TAG=v$NEWMAJOR-latest
60-
vi
60+
fi
6161
(
6262
cd "$dir"
6363
npm publish --tag="$TAG"

0 commit comments

Comments
 (0)