From 7b93c9875ba04c6a8c329e5fbb30e6e178d30368 Mon Sep 17 00:00:00 2001 From: yangxiaolang <1810849666@qq.com> Date: Fri, 8 May 2026 15:28:31 +0800 Subject: [PATCH 1/4] fix: error dist tag --- .changeset/clean-jobs-grab.md | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 .changeset/clean-jobs-grab.md diff --git a/.changeset/clean-jobs-grab.md b/.changeset/clean-jobs-grab.md new file mode 100644 index 000000000..b78ad9659 --- /dev/null +++ b/.changeset/clean-jobs-grab.md @@ -0,0 +1,7 @@ +--- +"@alauda/ui": patch +--- + +fix: configure v9 release workflow + +Fix the `release/v9` release workflow so v9 stable releases publish with the `v9` tag and v9 pull request prereleases publish with the `v9-beta` tag. From b67d02b2b041e0d81f75e1912333cdc3a1de96f9 Mon Sep 17 00:00:00 2001 From: yangxiaolang <1810849666@qq.com> Date: Fri, 8 May 2026 15:52:14 +0800 Subject: [PATCH 2/4] fix: use valid v9 npm dist tags --- .changeset/clean-jobs-grab.md | 2 +- .github/workflows/release.yml | 2 +- package.json | 2 +- scripts/npm-tag.js | 4 ++-- scripts/publish-version.js | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.changeset/clean-jobs-grab.md b/.changeset/clean-jobs-grab.md index b78ad9659..9680bc30c 100644 --- a/.changeset/clean-jobs-grab.md +++ b/.changeset/clean-jobs-grab.md @@ -4,4 +4,4 @@ fix: configure v9 release workflow -Fix the `release/v9` release workflow so v9 stable releases publish with the `v9` tag and v9 pull request prereleases publish with the `v9-beta` tag. +Fix the `release/v9` release workflow so v9 stable releases publish with the `aui-v9` tag and v9 pull request prereleases publish with the `aui-v9-beta` tag. diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 35a7b95ad..86c9a73da 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -55,7 +55,7 @@ jobs: if: github.event_name == 'pull_request' run: sh scripts/release.sh env: - PUBLISH_VERSION: v9-beta + PUBLISH_VERSION: aui-v9-beta - name: Set git info if: github.event_name == 'workflow_dispatch' diff --git a/package.json b/package.json index 29cdb6592..bceb8611a 100644 --- a/package.json +++ b/package.json @@ -32,7 +32,7 @@ "lint:tsc": "tsc -p . --noEmit", "prepare": "patch-package && simple-git-hooks && touch documentation.json && yarn-deduplicate --strategy fewer || exit 0", "prerelease": "yarn build", - "release": "changeset publish --tag v9", + "release": "changeset publish --tag aui-v9", "start": "yarn storybook", "storybook": "ng run storybook:storybook", "storybook:build": "ng run storybook:build-storybook", diff --git a/scripts/npm-tag.js b/scripts/npm-tag.js index 66f90d27a..3a5e49175 100644 --- a/scripts/npm-tag.js +++ b/scripts/npm-tag.js @@ -2,8 +2,8 @@ const { getProdVersion } = require('./utils'); const version = process.env.PUBLISH_VERSION; -if (version === 'v9-beta') { - process.stdout.write('v9-beta'); +if (version === 'aui-v9-beta') { + process.stdout.write('aui-v9-beta'); } else if (version.includes('-prod-')) { process.stdout.write(getProdVersion(version)); } else if (version === 'beta' || /-beta[._-]?\d*$/.test(version)) { diff --git a/scripts/publish-version.js b/scripts/publish-version.js index bc39c7684..dbf9e97b0 100644 --- a/scripts/publish-version.js +++ b/scripts/publish-version.js @@ -45,7 +45,7 @@ function getNextBetaVersion(stable, versions) { let version = process.env.PUBLISH_VERSION || 'patch'; -if (version === 'beta' || version === 'v9-beta') { +if (version === 'beta' || version === 'aui-v9-beta') { const versions = getNpmInfo('versions'); const stable = process.env.PUBLISH_BETA_BASE_VERSION || packageVersion; From 3a7ca642d03ac000186d9fde46be7a1d28528e5d Mon Sep 17 00:00:00 2001 From: yangxiaolang <1810849666@qq.com> Date: Fri, 8 May 2026 16:05:03 +0800 Subject: [PATCH 3/4] ci: skip beta publish for release prs --- .github/workflows/release.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 86c9a73da..da7c6c1fc 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -52,7 +52,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} - name: Release beta - if: github.event_name == 'pull_request' + if: github.event_name == 'pull_request' && !startsWith(github.head_ref, 'changeset-release/') run: sh scripts/release.sh env: PUBLISH_VERSION: aui-v9-beta @@ -70,5 +70,5 @@ jobs: PUBLISH_VERSION: ${{ github.event.inputs.version }} - name: Sync Cnpm - if: github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && steps.changesets.outputs.published == 'true') + if: (github.event_name == 'pull_request' && !startsWith(github.head_ref, 'changeset-release/')) || github.event_name == 'workflow_dispatch' || (github.event_name == 'push' && steps.changesets.outputs.published == 'true') run: npx cnpm sync @alauda/ui From ff715c641947b33079b5c2a567078a8810b782d0 Mon Sep 17 00:00:00 2001 From: yangxiaolang <1810849666@qq.com> Date: Fri, 8 May 2026 16:25:30 +0800 Subject: [PATCH 4/4] fix: remove changeset --- .changeset/clean-jobs-grab.md | 7 ------- 1 file changed, 7 deletions(-) delete mode 100644 .changeset/clean-jobs-grab.md diff --git a/.changeset/clean-jobs-grab.md b/.changeset/clean-jobs-grab.md deleted file mode 100644 index 9680bc30c..000000000 --- a/.changeset/clean-jobs-grab.md +++ /dev/null @@ -1,7 +0,0 @@ ---- -"@alauda/ui": patch ---- - -fix: configure v9 release workflow - -Fix the `release/v9` release workflow so v9 stable releases publish with the `aui-v9` tag and v9 pull request prereleases publish with the `aui-v9-beta` tag.