β¬οΈ Bump rollup from 4.41.1 to 4.59.0 #12
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: Dependabot | |
| on: | |
| push: | |
| branches: | |
| - 'dependabot/**' | |
| jobs: | |
| ci-image: | |
| name: Changeset | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 1 | |
| ref: ${{ github.event.pull_request.head.ref }} | |
| - name: Configure git | |
| run: | | |
| git config --local user.email "$(git log --pretty='%ae' -1)" | |
| git config --local user.name "Dependabot[bot]" | |
| git checkout ${{ github.event.pull_request.head.ref }} | |
| - uses: pnpm/action-setup@v4 | |
| name: Install pnpm | |
| with: | |
| version: 10 | |
| run_install: false | |
| - name: Use Node.js 20.x | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 20.x | |
| cache: 'pnpm' | |
| - name: Install Dependencies | |
| run: pnpm install | |
| - name: Create a changeset | |
| run: | | |
| # Parse the dependency | |
| commit_message=$(git show -s --format=%B ${{ github.event.pull_request.head.sha }} | head -1) | |
| dependency_name=$(sed -nE 's/Bump (.*) from.*/\1/p' <(echo $commit_message)) | |
| changeset_file_path=$(npm run dependabot:changeset $commit_message $dependency_name) | |
| - name: Commit | |
| run: | | |
| git add $changeset_file_path | |
| git commit -m "[dependabot skip] Add changeset" | |
| - name: Push changes back to branch | |
| run: | | |
| git push origin ${{ github.event.pull_request.head.ref }} |