From 128d3aca95f18997ed264c06de11c887c30b9f59 Mon Sep 17 00:00:00 2001 From: marherb <1014287974@qq.com> Date: Sun, 5 May 2024 00:39:24 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=8E=20ci(workflow):=20=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E5=88=A4=E6=96=AD=E9=80=BB=E8=BE=91=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 58ebc2f..554b522 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -25,7 +25,7 @@ jobs: PACKAGE_NAME=$(node -p "require('./package.json').name") CURRENT_VERSION=$(node -p "require('./package.json').version") NPM_VERSION=$(npm view $PACKAGE_NAME version || echo "0.0.0") - if [ "$(printf '%s\n' "$CURRENT_VERSION" "$NPM_VERSION" | sort -V | tail -n1)" != "$CURRENT_VERSION" ] || [ "$NPM_VERSION" == "0.0.0" ]; then + if [ "$(printf '%s\n' "$NPM_VERSION" "$CURRENT_VERSION" | sort -V | tail -n1)" != "$CURRENT_VERSION" ] || [ "$NPM_VERSION" == "0.0.0" ]; then echo "Current version is less than or equal to npm version, or package has not been published to npm yet." echo "version_changed=false" >> $GITHUB_ENV else