diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 5030c607..f2543906 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 5944c76a..d2593cbc 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 bacd2325..d19bb5b4 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 e3a4e35d..3eb9c2bc 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: