-
Notifications
You must be signed in to change notification settings - Fork 394
43 lines (35 loc) · 1.03 KB
/
npm-build.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: npm-build
on:
pull_request:
jobs:
npm-build:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Setup PHP, with composer and extensions
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
extensions: mbstring, intl, amqp, dba
tools: composer:v2
- uses: actions/setup-node@v4
with:
node-version: 20
- name: Install Composer dependencies
working-directory: ./packages/admin
run: |
composer require lunarphp/lunar:"^1.0.0-alpha" -W --no-interaction --no-update --dev
- name: Install dependencies
working-directory: ./packages/admin
run: npm i
- name: Build assets
working-directory: ./packages/admin
run: npm run build
- name: Pull changes
run: git pull
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
commit_message: >
chore: build assets