From 3956632c70d10d341cd083c9bc57d8141dcc5cf2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=98=BFCai?= Date: Tue, 22 Oct 2024 19:42:30 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E9=99=90=E5=88=B6=E7=9B=AE?= =?UTF-8?q?=E5=BD=95=E5=8C=B9=E9=85=8D=E8=A7=84=E5=88=99=20=E6=B7=BB?= =?UTF-8?q?=E5=8A=A0=E6=B5=8B=E8=AF=95=E8=84=9A=E6=9C=ACaction=E9=99=90?= =?UTF-8?q?=E5=88=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build.yml | 5 +++++ .github/workflows/pr-merge-dev-npm_preview.yml | 5 ++--- .github/workflows/pr-merge.yml | 5 ++--- .github/workflows/pr-test.yml | 5 +++++ 4 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5030c607a..f25439061 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -8,6 +8,11 @@ on: branches: [main, dev] pull_request: branches: [main, dev] + paths: # 这里是用来指定哪个文件更改,才会触发的 + - 'src/**' + - 'package.json' + - 'types/**' + - 'examples/**' jobs: build: diff --git a/.github/workflows/pr-merge-dev-npm_preview.yml b/.github/workflows/pr-merge-dev-npm_preview.yml index 5944c76af..d2593cbc1 100644 --- a/.github/workflows/pr-merge-dev-npm_preview.yml +++ b/.github/workflows/pr-merge-dev-npm_preview.yml @@ -15,11 +15,10 @@ on: types: - closed paths: # 这里是用来指定哪个文件更改,才会触发的 - - 'src/**/*.js' - - 'src/**/*.scss' + - 'src/**' - 'package.json' - 'types/**' - - 'build/*.js' + - 'examples/**' permissions: pull-requests: write diff --git a/.github/workflows/pr-merge.yml b/.github/workflows/pr-merge.yml index bacd23258..d19bb5b43 100644 --- a/.github/workflows/pr-merge.yml +++ b/.github/workflows/pr-merge.yml @@ -5,11 +5,10 @@ on: types: - closed paths: # 这里是用来指定哪个文件更改,才会触发的 - - 'src/**/*.js' - - 'src/**/*.scss' + - 'src/**' - 'package.json' - 'types/**' - - 'build/*.js' + - 'examples/**' jobs: remove_assets: diff --git a/.github/workflows/pr-test.yml b/.github/workflows/pr-test.yml index e3a4e35d8..3eb9c2bc1 100644 --- a/.github/workflows/pr-test.yml +++ b/.github/workflows/pr-test.yml @@ -3,6 +3,11 @@ name: PR Test on: pull_request_target: branches: [main, dev] + paths: # 这里是用来指定哪个文件更改,才会触发的 + - 'src/**' + - 'package.json' + - 'types/**' + - 'examples/**' jobs: build: