From f38b341d672d8fe4831653aaa09b7d486892fea4 Mon Sep 17 00:00:00 2001 From: PiEgg Date: Sun, 11 Oct 2026 21:11:24 -0400 Subject: [PATCH] ci(v3-pro-release-beta): point latest at each Pro beta release (#10765) --- .github/workflows/v3-pro-release-beta.yml | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/.github/workflows/v3-pro-release-beta.yml b/.github/workflows/v3-pro-release-beta.yml index 6c0f1f58dbb..36e0f1e1092 100644 --- a/.github/workflows/v3-pro-release-beta.yml +++ b/.github/workflows/v3-pro-release-beta.yml @@ -201,7 +201,9 @@ jobs: PRO_NPM_REGISTRY: ${{ secrets.PRO_NPM_REGISTRY }} run: node ./scripts/publish-commercial-packages.mjs --registry "$PRO_NPM_REGISTRY" --tag beta - - name: Point beta at this release and push package tags + # Point latest at each release as well as beta, so installing a Pro package without a tag gets the version that was + # just published, as the OSS beta release does. + - name: Point beta and latest at this release and push package tags if: "!inputs.dry_run && steps.release_state.outputs.release == 'true'" env: NODE_AUTH_TOKEN: ${{ secrets.PRO_NPM_TOKEN }} @@ -211,9 +213,11 @@ jobs: FAILED=0 while IFS= read -r SPEC; do [ -n "$SPEC" ] || continue - npm dist-tag add "$SPEC" beta --registry "$PRO_NPM_REGISTRY" || FAILED=1 + for TAG in beta latest; do + npm dist-tag add "$SPEC" "$TAG" --registry "$PRO_NPM_REGISTRY" || FAILED=1 + done done < "$RUNNER_TEMP/pro-released-specs.txt" - test "$FAILED" = 0 || { echo '::error::One or more Pro beta dist-tags could not be updated'; exit 1; } + test "$FAILED" = 0 || { echo '::error::One or more Pro beta or latest dist-tags could not be updated'; exit 1; } git push origin --tags - name: Merge release metadata back into Pro develop @@ -258,7 +262,7 @@ jobs: WORKFLOW_URL: ${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }} RELEASE_URL: ${{ github.server_url }}/nocobase/nocobase3-pro/releases TABLE_JSON: ${{ steps.changed.outputs.rows }} - CONTENT: 版本 **${{ steps.branch.outputs.batch }}** 已发布到私有 npm(dist-tag `beta`)。 + CONTENT: 版本 **${{ steps.branch.outputs.batch }}** 已发布到私有 npm(dist-tag `beta` 和 `latest`)。 run: ./vendor/nocobase3/scripts/feishu-notify.sh - name: Notify failure