Bump @types/jest from 29.5.13 to 29.5.14 #10
Workflow file for this run
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: Dependabot distribution | |
on: | |
pull_request: | |
types: [opened, synchronize] | |
permissions: | |
contents: write | |
pull-requests: read | |
jobs: | |
dependabot_build: | |
if: ${{ github.actor == 'dependabot[bot]' }} | |
runs-on: ubuntu-latest | |
steps: | |
- name: Fetch Dependabot metadata | |
id: dependabot-metadata | |
uses: dependabot/fetch-metadata@v2 | |
- name: Checkout | |
uses: actions/checkout@v4 | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm' }} | |
with: | |
ref: ${{ github.event.pull_request.head.sha }} | |
- name: Setup Node.js | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm' }} | |
uses: actions/setup-node@v4 | |
with: | |
node-version: 20.x | |
- name: Install dependencies | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm' }} | |
run: npm install | |
- name: Build | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm' }} | |
run: npm run build | |
- name: Pull request update | |
if: ${{ steps.dependabot-metadata.outputs.package-ecosystem == 'npm' }} | |
run: | | |
git config --global user.name 'some user' | |
git config --global user.email '[email protected]' | |
git remote set-url origin https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/$GITHUB_REPOSITORY | |
git add dist/ | |
git commit -m "Update distribution file" | |
git push -u origin HEAD:${{ github.event.pull_request.head.ref }} |