chore: merge main, resolve conflicts #5
Workflow file for this run
This file contains hidden or 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: Check for yarn updates | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| on: | |
| schedule: | |
| - cron: '0 5 1 * *' | |
| push: | |
| paths: | |
| - '.github/workflows/yarn_update.yml' | |
| workflow_dispatch: | |
| jobs: | |
| yarn-update-check: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout repository | |
| uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd | |
| - name: Setup Node.js | |
| uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f | |
| with: | |
| node-version: 24 | |
| - name: Update yarn | |
| id: update-yarn | |
| run: | | |
| OLD_VERSION=$(yarn --version) | |
| yarn set version stable | |
| NEW_VERSION=$(yarn --version) | |
| if [ "${OLD_VERSION}" == "${NEW_VERSION}" ]; then | |
| echo "yarn is already up to date." | |
| else | |
| echo "yarn updated to version ${NEW_VERSION}." | |
| echo "YARN_VERSION=${NEW_VERSION}" >> $GITHUB_OUTPUT | |
| fi | |
| - name: Create Pull Request | |
| if: steps.update-yarn.outputs.YARN_VERSION != '' | |
| uses: peter-evans/create-pull-request@c0f553fe549906ede9cf27b5156039d195d2ece0 | |
| with: | |
| author: 'Florian Imdahl <[email protected]>' | |
| committer: 'Florian Imdahl <[email protected]>' | |
| base: main | |
| body: | | |
| This PR updates yarn to version **${{ steps.update-yarn.outputs.YARN_VERSION }}**. | |
| See the [release notes](https://github.com/yarnpkg/berry/releases/tag/%40yarnpkg%2Fcli%2F${{ steps.update-yarn.outputs.YARN_VERSION }}) for more details. | |
| branch: 'chore/deps/yarn-${{ steps.update-yarn.outputs.YARN_VERSION }}' | |
| commit-message: 'chore(deps): bump yarn to version ${{ steps.update-yarn.outputs.YARN_VERSION }}' | |
| title: 'chore(deps): bump yarn to version ${{ steps.update-yarn.outputs.YARN_VERSION }}' |