Skip to content

Commit

Permalink
compact mode and approved prs
Browse files Browse the repository at this point in the history
  • Loading branch information
AmirSa12 committed Jun 4, 2024
1 parent d0fa5fd commit b71be09
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/cr.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,15 @@
name: Publish Any Commit
on: [push, pull_request]
on:
push:
branches:
- main
- v6/environment-api
pull_request_review:
types: [submitted]

jobs:
build:
if: github.event_name == 'push' || github.event.review.state == 'APPROVED'
runs-on: ubuntu-latest

steps:
Expand All @@ -21,7 +28,7 @@ jobs:
- name: Build
run: pnpm build

- run: pnpx pkg-pr-new publish --pnpm
- run: pnpx pkg-pr-new publish --compact --pnpm
working-directory: ./packages/vite
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit b71be09

Please sign in to comment.