Update Yarn Packages #17
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: Update Yarn Packages | |
on: | |
schedule: | |
- cron: '0 0 */2 * *' | |
jobs: | |
update-packages: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Node.js | |
uses: actions/setup-node@v4 | |
with: | |
node-version: '20.x' | |
- name: Install dependencies | |
run: | | |
npm install --global yarn | |
yarn --version | |
yarn install | |
- name: Upgrade Yarn packages | |
run: yarn upgrade | |
- name: Commit and push changes | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.TOKEN }} | |
branch: main | |
force: false # Optional, um --force Pushes zu erlauben | |