Skip to content

Create npm-build.yml #5

Create npm-build.yml

Create npm-build.yml #5

Workflow file for this run

name: npm-build
on:

Check failure on line 3 in .github/workflows/npm-build.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/npm-build.yml

Invalid workflow file

You have an error in your yaml syntax on line 3
pull_request:
branches:
- 1.x
: # types:
: # - closed
jobs:
npm-build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
defaults:
run:
working-directory: ./packages/admin
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
ref: 1.x
- name: Setup Node
uses: actions/setup-node@v2
- name: Install Composer dependencies
run: |
composer install --no-interaction --prefer-dist
- 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: 1.x
commit_message: >
chore: build assets