Fix conflicting peer dependencies (#347) #139
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: Prettier PR | |
on: | |
push: | |
branches: | |
- '*' | |
workflow_dispatch: | |
jobs: | |
fix-peer-dependencies: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20 | |
- name: Install dependencies | |
run: yarn | |
- name: Yarn upgrade | |
run: yarn upgrade | |
- name: Add prettier | |
run: yarn add --dev prettier | |
- name: Prettier | |
run: yarn prettier . --write | |
- name: Git setup | |
run: | | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
- name: Commit changes | |
run: | | |
git add . | |
git commit -m "Fix conflicting peer dependencies" || true | |
git pull || true | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v6 | |
with: | |
commit-message: "Prettier" | |
title: "Prettier" | |
body: "Prettier" | |
branch-suffix: timestamp |