Fix: use node24 runner, update dependencies to node ^24.5.2 #52
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: Dependabot NPM changes | |
| on: | |
| pull_request | |
| jobs: | |
| npm-update: | |
| runs-on: ubuntu-24.04 | |
| if: ${{ github.actor == 'dependabot[bot]' }} | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - uses: actions/setup-node@v5 | |
| with: | |
| node-version: lts/* | |
| cache: npm | |
| - name: Checkout PR | |
| run: gh pr checkout ${{ github.event.pull_request.number }} | |
| env: | |
| GITHUB_TOKEN: ${{ github.token }} | |
| - run: npm install | |
| - name: Git config | |
| run: | | |
| git config user.name github-actions | |
| git config user.email github-actions@github.com | |
| - name: Stage changes | |
| run: git add -A node_modules | |
| - name: Commit changes | |
| run: git commit -m "Updated node_modules" | |
| - name: Push changes to PR | |
| run: git push | |
| - name: Dependabot metadata | |
| id: metadata | |
| uses: dependabot/fetch-metadata@v2 | |
| with: | |
| github-token: "${{ secrets.GITHUB_TOKEN }}" | |
| - name: Enable auto-merge for Dependabot PRs | |
| if: ${{ steps.metadata.outputs.update-type == 'version-update:semver-patch' }} | |
| run: gh pr merge --auto --merge "$PR_URL" | |
| env: | |
| PR_URL: ${{ github.event.pull_request.html_url }} | |
| GITHUB_TOKEN: ${{ github.token }} |