mirror of
https://github.com/filamentphp/filament.git
synced 2026-10-25 10:04:54 +08:00
33 lines
689 B
YAML
33 lines
689 B
YAML
name: npm-build
|
|
|
|
on:
|
|
pull_request:
|
|
branches:
|
|
- 3.x
|
|
types:
|
|
- closed
|
|
|
|
jobs:
|
|
npm-build:
|
|
runs-on: ubuntu-latest
|
|
if: github.event.pull_request.merged == true
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v3
|
|
with:
|
|
ref: 3.x
|
|
- name: Setup Node
|
|
uses: actions/setup-node@v2
|
|
- name: Install dependencies
|
|
run: npm ci
|
|
- name: Build assets
|
|
run: npm run build
|
|
- name: Pull changes
|
|
run: git pull
|
|
- name: Commit changes
|
|
uses: stefanzweifel/git-auto-commit-action@v4
|
|
with:
|
|
branch: 3.x
|
|
commit_message: >
|
|
chore: build assets
|