diff --git a/.github/workflows/Release.yml b/.github/workflows/Release.yml index 9cc8a0e0e..2e64ad8fe 100644 --- a/.github/workflows/Release.yml +++ b/.github/workflows/Release.yml @@ -33,9 +33,7 @@ jobs: run: pnpm install - name: Run Build - run: | - pnpm run build:plugin - pnpm run build:alpha > build-alpha.log 2>&1 + run: pnpm run build:plugin && pnpm run build:alpha > build-alpha.log 2>&1 - name: Upload build logs uses: actions/upload-artifact@v4 @@ -48,18 +46,18 @@ jobs: run: | tag_name="${GITHUB_REF#refs/tags/}" if [[ "$tag_name" == *alpha* ]]; then - echo "dist_tag=alpha" >> $GITHUB_OUTPUT + echo "dist_tag=alpha" >> "$GITHUB_OUTPUT" elif [[ "$tag_name" == *beta* ]]; then - echo "dist_tag=beta" >> $GITHUB_OUTPUT + echo "dist_tag=beta" >> "$GITHUB_OUTPUT" elif [[ "$tag_name" == *rc* ]]; then - echo "dist_tag=rc" >> $GITHUB_OUTPUT + echo "dist_tag=rc" >> "$GITHUB_OUTPUT" else - echo "dist_tag=latest" >> $GITHUB_OUTPUT + echo "dist_tag=latest" >> "$GITHUB_OUTPUT" fi - name: Verify clean working directory run: | - if [[ -n $(git status --porcelain) ]]; then + if [[ -n "$(git status --porcelain)" ]]; then echo "Working directory is not clean" exit 1 fi