From 644de90b3306a59ef134283dcb74ca92dcffd529 Mon Sep 17 00:00:00 2001 From: Vshivkov Vladimir Date: Thu, 12 Dec 2024 10:51:19 +0100 Subject: [PATCH] chore: Update GitHub Actions workflow for dependency management - Set up Node.js version 20 and enable Yarn caching. - Install dependencies using `yarn install --frozen-lockfile`. - Automate dependency updates with a new step to create a pull request for updated dependencies. - Include a commit message and title for the pull request, along with a review reminder. This enhances the workflow for managing dependencies and ensures that updates are handled automatically. --- .github/workflows/bump-versions.yml | 28 ++++++++++++++++++++++++++-- 1 file changed, 26 insertions(+), 2 deletions(-) diff --git a/.github/workflows/bump-versions.yml b/.github/workflows/bump-versions.yml index 2e9844d..aaf9357 100644 --- a/.github/workflows/bump-versions.yml +++ b/.github/workflows/bump-versions.yml @@ -17,5 +17,29 @@ jobs: steps: - uses: actions/checkout@v4 - - run: corepack enable && yarn install --immutable - - run: ./update.sh + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + cache: 'yarn' + + - name: Install dependencies + run: yarn install --frozen-lockfile + + - name: Update dependencies + run: | + ./update.sh + + - name: Create Pull Request + uses: peter-evans/create-pull-request@v6 + with: + token: ${{ secrets.GITHUB_TOKEN }} + commit-message: 'chore: update dependencies' + title: '⬆️ Update Dependencies' + body: | + Automated dependency updates. + + Please review the changes and make sure all tests pass before merging. + branch: dependency-updates + delete-branch: true + labels: dependencies