Skip to content

Commit f7f5215

Browse files
[12.x] Changes to package-lock.json should trigger npm run build (#55426)
* [12.x] Changes to `package-lock.json` should trigger `npm run build` Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update update-assets.yml --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: Taylor Otwell <[email protected]>
1 parent b350507 commit f7f5215

File tree

2 files changed

+32
-1
lines changed

2 files changed

+32
-1
lines changed

.github/workflows/update-assets.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: 'update assets'
2+
3+
on:
4+
push:
5+
branches:
6+
- '12.x'
7+
paths:
8+
- '/src/Illuminate/Foundation/resources/exceptions/renderer/package-lock.json'
9+
workflow_dispatch:
10+
11+
jobs:
12+
update:
13+
runs-on: ubuntu-latest
14+
15+
steps:
16+
- name: Checkout Code
17+
uses: actions/checkout@v4
18+
19+
- uses: actions/setup-node@v4
20+
with:
21+
node-version: 18
22+
23+
- name: Update Exception Renderer Assets
24+
run: |
25+
npm ci --prefix "./src/Illuminate/Foundation/resources/exceptions/renderer"
26+
npm run build --prefix "./src/Illuminate/Foundation/resources/exceptions/renderer"
27+
28+
- name: Commit Compiled Files
29+
uses: stefanzweifel/git-auto-commit-action@v5
30+
with:
31+
commit_message: Update Assets

0 commit comments

Comments
 (0)