Skip to content

Commit

Permalink
chore: Update GitHub Actions workflow for dependency management
Browse files Browse the repository at this point in the history
- 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.
  • Loading branch information
vladimirvshivkov committed Dec 12, 2024
1 parent 6a8673f commit 644de90
Showing 1 changed file with 26 additions and 2 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/bump-versions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 644de90

Please sign in to comment.