mirror of
https://github.com/astral-sh/setup-uv.git
synced 2026-05-05 09:58:51 +00:00
Add workflow to auto-build dist on Dependabot PRs
This commit is contained in:
parent
09ff6fe0ae
commit
1731ba77b4
1 changed files with 37 additions and 0 deletions
37
.github/workflows/dependabot-build.yml
vendored
Normal file
37
.github/workflows/dependabot-build.yml
vendored
Normal file
|
|
@ -0,0 +1,37 @@
|
||||||
|
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 }}
|
||||||
|
token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
|
||||||
|
- 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/
|
||||||
Loading…
Add table
Add a link
Reference in a new issue