Sfoglia il codice sorgente

fix: npm view error code

dragooncjw 10 mesi fa
parent
commit
3972b7770d
1 ha cambiato i file con 1 aggiunte e 1 eliminazioni
  1. 1 1
      .github/workflows/publish-alpha.yml

+ 1 - 1
.github/workflows/publish-alpha.yml

@@ -31,7 +31,7 @@ jobs:
       - name: Get alpha latest npm version
         id: get_version
         run: |
-          LATEST_VERSION=$(npm view @flowgram.ai/core version --tag=alpha latest 2>/dev/null)
+          LATEST_VERSION=$(npm view @flowgram.ai/core version --tag=alpha latest 2>/dev/null || true)
           if [ -n "$LATEST_VERSION" ]; then
             echo "Using existing version: $LATEST_VERSION"
           else