From f51168f329628b09edc3c6a26b6bc3855926919f Mon Sep 17 00:00:00 2001 From: angeousta <132761637+angeousta@users.noreply.github.com> Date: Mon, 4 Dec 2023 23:45:01 +0100 Subject: [PATCH] Create fix_peer_dependencies.yml --- .github/workflows/fix_peer_dependencies.yml | 44 +++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 .github/workflows/fix_peer_dependencies.yml diff --git a/.github/workflows/fix_peer_dependencies.yml b/.github/workflows/fix_peer_dependencies.yml new file mode 100644 index 00000000..2c6c9318 --- /dev/null +++ b/.github/workflows/fix_peer_dependencies.yml @@ -0,0 +1,44 @@ +name: Fix Peer Dependencies + +on: + push: + branches: + - '*' + +jobs: + fix-peer-dependencies: + runs-on: ubuntu-latest + + steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Node.js + uses: actions/setup-node@v3 + with: + node-version: 20 + + - name: Install dependencies + run: npm install + + - name: Fix peer dependencies + run: npm update + + - name: Git setup + run: | + git config --local user.email "action@github.com" + 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@v3 + with: + commit-message: "Fix conflicting peer dependencies" + title: "Fix conflicting peer dependencies" + body: "This pull request fixes conflicting peer dependencies." + branch-suffix: timestamp