Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,10 +52,10 @@ 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: v9-beta
PUBLISH_VERSION: aui-v9-beta

- name: Set git info
if: github.event_name == 'workflow_dispatch'
Expand All @@ -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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
4 changes: 2 additions & 2 deletions scripts/npm-tag.js
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down
2 changes: 1 addition & 1 deletion scripts/publish-version.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Loading