From e1a41711b8e82acdb60dcbc0bac97a7d0a7b3147 Mon Sep 17 00:00:00 2001 From: "wangkai.1997" Date: Wed, 11 Sep 2024 18:37:57 +0800 Subject: [PATCH] chore: fix ci config --- .../{seven-suns-admire.md => selfish-pillows-wave.md} | 2 +- .changeset/two-clouds-tickle.md | 6 ------ .github/workflows/deploy-storybook.yaml | 3 +-- .github/workflows/preview-storybook.yaml | 1 + .github/workflows/release.yaml | 3 +-- .github/workflows/snapshot-release.yaml | 2 +- 6 files changed, 5 insertions(+), 12 deletions(-) rename .changeset/{seven-suns-admire.md => selfish-pillows-wave.md} (74%) delete mode 100644 .changeset/two-clouds-tickle.md diff --git a/.changeset/seven-suns-admire.md b/.changeset/selfish-pillows-wave.md similarity index 74% rename from .changeset/seven-suns-admire.md rename to .changeset/selfish-pillows-wave.md index e20dda7..de40014 100644 --- a/.changeset/seven-suns-admire.md +++ b/.changeset/selfish-pillows-wave.md @@ -3,4 +3,4 @@ "@fe-kit/utils": patch --- -fix release ci +fix release ci check diff --git a/.changeset/two-clouds-tickle.md b/.changeset/two-clouds-tickle.md deleted file mode 100644 index e20dda7..0000000 --- a/.changeset/two-clouds-tickle.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@fe-kit/components": patch -"@fe-kit/utils": patch ---- - -fix release ci diff --git a/.github/workflows/deploy-storybook.yaml b/.github/workflows/deploy-storybook.yaml index 7bb3c3b..5382539 100644 --- a/.github/workflows/deploy-storybook.yaml +++ b/.github/workflows/deploy-storybook.yaml @@ -1,11 +1,10 @@ name: Deploy Storybook to GitHub Pages on: - # Event for the workflow to run on workflow_dispatch: push: branches: - - "master" # Replace with the branch you want to deploy from + - "master" paths: - "packages/components/**" diff --git a/.github/workflows/preview-storybook.yaml b/.github/workflows/preview-storybook.yaml index 9baf207..ba5f7cb 100644 --- a/.github/workflows/preview-storybook.yaml +++ b/.github/workflows/preview-storybook.yaml @@ -8,6 +8,7 @@ on: jobs: Deploy-Preview: + if: ${{ ! startsWith(github.event.pull_request.title, 'auto-changesets-release') }} runs-on: ubuntu-latest steps: # Manual Checkout diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 9c98306..409f23d 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -11,7 +11,6 @@ jobs: Release: name: Release runs-on: ubuntu-latest - if: ${{ ! startsWith(github.action.pull_request.title, '[Changesets ci]') }} permissions: id-token: write contents: write @@ -41,7 +40,7 @@ jobs: with: publish: npx turbo run build && npx changeset publish version: npx changeset version - title: "[Changesets ci] Auto release" + title: "auto-changesets-release" commit: "chore: auto update packages version and changelog" createGithubReleases: true env: diff --git a/.github/workflows/snapshot-release.yaml b/.github/workflows/snapshot-release.yaml index b37ff67..4b9f7ba 100644 --- a/.github/workflows/snapshot-release.yaml +++ b/.github/workflows/snapshot-release.yaml @@ -7,8 +7,8 @@ on: jobs: Release: name: SnapshotRelease + if: ${{ ! startsWith(github.event.pull_request.title, 'auto-changesets-release') }} runs-on: ubuntu-latest - if: ${{ ! startsWith(github.action.pull_request.title, '[Changesets ci]') }} steps: - name: Checkout repository uses: actions/checkout@v4