diff --git a/.github/workflows/cr.yml b/.github/workflows/cr.yml index e15307b261eb74..253098b20a73f9 100644 --- a/.github/workflows/cr.yml +++ b/.github/workflows/cr.yml @@ -1,15 +1,8 @@ name: Publish Any Commit -on: - push: - branches: - - main - - v6/environment-api - pull_request_review: - types: [submitted] +on: [push, pull_request] jobs: build: - if: github.event_name == 'push' || github.event.review.state == 'APPROVED' runs-on: ubuntu-latest steps: @@ -28,5 +21,7 @@ jobs: - name: Build run: pnpm build - - run: pnpx pkg-pr-new publish --compact --pnpm - working-directory: ./packages/vite + - run: pnpx pkg-pr-new publish --pnpm ./packages/vite + # working-directory: ./packages/vite + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}