diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e09153d..f84a7b7 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -3,6 +3,9 @@ on: push: branches: - main + pull_request: + branches: + - main workflow_dispatch: permissions: @@ -74,7 +77,7 @@ jobs: run: pnpm run build - name: Push artifacts - if: ${{ github.event.pull_request.merged == true && needs.filter.outputs.any_changed == 'true' }} + if: ${{ (github.event_name == 'push' || github.event.pull_request.merged == true) && needs.filter.outputs.any_changed == 'true' }} run: | git config --global user.email "noreply@github.com" git config --global user.name "CI"