-
-
Notifications
You must be signed in to change notification settings - Fork 143
executable file
·46 lines (44 loc) · 1.04 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
44
45
46
name: npm-build
on:
pull_request:
branches:
- '*.x'
types:
- closed
jobs:
npm-build:
runs-on: ubuntu-latest
if: github.event.pull_request.merged == true
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
ref: 2.x
- uses: pnpm/action-setup@v4
name: Install pnpm
with:
version: 8
run_install: false
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: 20
cache: 'pnpm'
- name: Set up PHP
uses: shivammathur/setup-php@v2
with:
php-version: 8.3
- name: Install dependencies
run: |
composer install --no-interaction
pnpm install
- name: Build assets
run: pnpm build
- name: Pull changes
run: git pull
- name: Commit changes
uses: stefanzweifel/git-auto-commit-action@v4
with:
branch: ${{ github.ref_name }}
commit_message: >
chore: Build assets