astral-sh-setup-uv/.github/workflows/dependabot-build.yml

36 lines
768 B
YAML

name: Dependabot Build
on:
pull_request:
types: [opened, synchronize, reopened]
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
if: github.actor == 'dependabot[bot]'
steps:
- name: Checkout PR branch
uses: actions/checkout@v4
with:
ref: ${{ github.head_ref }}
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "20"
cache: "npm"
- name: Install dependencies
run: npm ci
- name: Build and test
run: npm run all
- name: Commit built dist
uses: stefanzweifel/git-auto-commit-action@v5
with:
commit_message: "Build dist for Dependabot update"
file_pattern: dist/