fix: Fix imports and remove unnecessary peer dependency #6389
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Dev PR | |
on: | |
pull_request_review: | |
types: | |
- submitted | |
pull_request_target: | |
types: | |
- opened | |
- reopened | |
- edited | |
- labeled | |
- unlabeled | |
- synchronize | |
- ready_for_review | |
- unlocked | |
branches: | |
- dev | |
- main | |
permissions: | |
actions: write | |
issues: write | |
pull-requests: write | |
jobs: | |
# printer: | |
# runs-on: ubuntu-latest | |
# steps: | |
# - name: Checkout | |
# uses: actions/checkout@v2 | |
# - name: Print | |
# run: echo '${{ github.event.pull_request.base.ref }}' | |
dev-pr: | |
if: github.base_ref == 'dev' && github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Ensure checklists are filled | |
uses: actions/github-script@v4 | |
with: | |
script: | | |
const script = require('.github/actions/checklist.js').check; | |
await script({context}); | |
- name: Ensure title update with changes type | |
uses: actions/github-script@v4 | |
with: | |
script: | | |
const script = require('.github/actions/pr-title.js').update; | |
await script({ context, github }); | |
- name: automerge | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MERGE_LABELS: automerge | |
MERGE_METHOD: squash | |
MERGE_COMMIT_MESSAGE: pull-request-title | |
MERGE_REQUIRED_APPROVALS: 1 | |
prod-pr: | |
if: github.base_ref == 'main' && github.event.pull_request.draft == false | |
runs-on: ubuntu-latest | |
steps: | |
- name: automerge | |
uses: pascalgn/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
MERGE_LABELS: automerge | |
MERGE_METHOD: rebase | |
MERGE_COMMIT_MESSAGE: automatic | |
MERGE_REQUIRED_APPROVALS: 1 | |