Skip to content

Commit e9db0e9

Browse files
authored
ci: Update building plugin => Node.js v20 + create pull request (#194)
* ci: Update building plugin => Node.js v20 + create pull request * ci: add auto-commit action for plugin build on pull request * Build plugin
1 parent 911797f commit e9db0e9

File tree

2 files changed

+39
-103
lines changed

2 files changed

+39
-103
lines changed

.github/workflows/build-plugin.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ on:
88
branches: [ main ]
99
pull_request:
1010
branches: [ main ]
11-
1211
workflow_dispatch:
1312

1413
jobs:
@@ -24,7 +23,7 @@ jobs:
2423
- name: Use Node.js
2524
uses: actions/setup-node@v4
2625
with:
27-
node-version: 18.x
26+
node-version: 20.x
2827

2928
- name: Install dependencies
3029
working-directory: ./resources/js/
@@ -34,8 +33,28 @@ jobs:
3433
working-directory: ./resources/js/
3534
run: npm run plugin:build
3635

36+
3737
- name: Commit changes
38-
if: github.event_name != 'pull_request'
38+
if: github.event_name == 'pull_request'
3939
uses: stefanzweifel/git-auto-commit-action@v5
4040
with:
4141
commit_message: Build plugin
42+
43+
- name: Create Pull Request
44+
if: github.event_name != 'pull_request'
45+
uses: peter-evans/create-pull-request@v7
46+
with:
47+
commit-message: Build plugin
48+
title: 'Auto: Build plugin assets'
49+
body: |
50+
This PR contains the latest built plugin assets.
51+
52+
**Build Details:**
53+
- Triggered by: ${{ github.actor }}
54+
- From commit: [${{ github.sha }}](${{ github.server_url }}/${{ github.repository }}/commit/${{ github.sha }})
55+
- Workflow run: [View Run](${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }})
56+
57+
Automatically generated by the plugin-build workflow.
58+
branch: build-plugin-update
59+
base: main
60+
delete-branch: true

resources/js/yarn.lock

Lines changed: 17 additions & 100 deletions
Original file line numberDiff line numberDiff line change
@@ -1121,10 +1121,10 @@
11211121
minimatch "^9.0.3"
11221122
plist "^3.1.0"
11231123

1124-
"@esbuild/darwin-arm64@0.25.1":
1124+
"@esbuild/linux-x64@0.25.1":
11251125
version "0.25.1"
1126-
resolved "https://registry.npmjs.org/@esbuild/darwin-arm64/-/darwin-arm64-0.25.1.tgz"
1127-
integrity sha512-5hEZKPf+nQjYoSr/elb62U19/l1mZDdqidGfmFutVUjjUZrOazAtwK+Kr+3y0C/oeJfLlxo9fXb1w7L+P7E4FQ==
1126+
resolved "https://registry.npmjs.org/@esbuild/linux-x64/-/linux-x64-0.25.1.tgz"
1127+
integrity sha512-xbfUhu/gnvSEg+EGovRc+kjBAkrvtk38RlerAzQxvMzlB4fXpCFCeUAYzJvrnhFtdeyVCDANSjJvOvGYoeKzFA==
11281128

11291129
"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0", "@eslint-community/eslint-utils@^4.4.1":
11301130
version "4.4.1"
@@ -1556,10 +1556,15 @@
15561556
resolved "https://registry.npmjs.org/@pkgr/core/-/core-0.1.1.tgz"
15571557
integrity sha512-cq8o4cWH0ibXh9VGi5P20Tu9XF/0fFXl9EUinr9QfTM7a7p0oTA4iJRCQWppXR1Pg8dSM0UCItCkPwsk9qWWYA==
15581558

1559-
"@rollup/rollup-darwin-arm64@4.30.1":
1559+
"@rollup/rollup-linux-x64-gnu@4.30.1":
15601560
version "4.30.1"
1561-
resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.30.1.tgz"
1562-
integrity sha512-r7FQIXD7gB0WJ5mokTUgUWPl0eYIH0wnxqeSAhuIwvnnpjdVB8cRRClyKLQr7lgzjctkbp5KmswWszlwYln03Q==
1561+
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.30.1.tgz"
1562+
integrity sha512-UtgGb7QGgXDIO+tqqJ5oZRGHsDLO8SlpE4MhqpY9Llpzi5rJMvrK6ZGhsRCST2abZdBqIBeXW6WPD5fGK5SDwg==
1563+
1564+
1565+
version "4.30.1"
1566+
resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.30.1.tgz"
1567+
integrity sha512-V9U8Ey2UqmQsBT+xTOeMzPzwDzyXmnAoO4edZhL7INkwQcaW1Ckv3WJX3qrrp/VHaDkEWIBWhRwP47r8cdrOow==
15631568

15641569
"@rushstack/eslint-patch@^1.10.4":
15651570
version "1.10.5"
@@ -1818,14 +1823,6 @@
18181823
resolved "https://registry.npmjs.org/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz"
18191824
integrity sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA==
18201825

1821-
"@types/plist@^3.0.1":
1822-
version "3.0.5"
1823-
resolved "https://registry.npmjs.org/@types/plist/-/plist-3.0.5.tgz"
1824-
integrity sha512-E6OCaRmAe4WDmWNsL/9RMqdkkzDCY1etutkflWk4c+AcjDU07Pcz1fQwTX0TQz+Pxqn9i4L1TU3UFpjnrcDgxA==
1825-
dependencies:
1826-
"@types/node" "*"
1827-
xmlbuilder ">=11.0.1"
1828-
18291826
"@types/ps-node@^0.1.3":
18301827
version "0.1.3"
18311828
resolved "https://registry.npmjs.org/@types/ps-node/-/ps-node-0.1.3.tgz"
@@ -1870,11 +1867,6 @@
18701867
resolved "https://registry.npmjs.org/@types/stack-utils/-/stack-utils-2.0.3.tgz"
18711868
integrity sha512-9aEbYZ3TbYMznPdcdr3SmIrLXwC/AKZXQeCf9Pgao5CKb8CyHuEX5jzWPTkvregvhRJHcpRO6BFoGW9ycaOkYw==
18721869

1873-
"@types/verror@^1.10.3":
1874-
version "1.10.10"
1875-
resolved "https://registry.npmjs.org/@types/verror/-/verror-1.10.10.tgz"
1876-
integrity sha512-l4MM0Jppn18hb9xmM6wwD1uTdShpf9Pn80aXTStnK1C94gtPvJcV2FrDmbOQUAQfJ1cKZHktkQUDwEqaAKXMMg==
1877-
18781870
"@types/yargs-parser@*":
18791871
version "21.0.3"
18801872
resolved "https://registry.npmjs.org/@types/yargs-parser/-/yargs-parser-21.0.3.tgz"
@@ -2069,7 +2061,7 @@ ajv-keywords@^3.4.1:
20692061
resolved "https://registry.npmjs.org/ajv-keywords/-/ajv-keywords-3.5.2.tgz"
20702062
integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ==
20712063

2072-
ajv@^6.10.0, ajv@^6.12.0, ajv@^6.12.4, ajv@^6.9.1:
2064+
ajv@^6.12.0, ajv@^6.12.4, ajv@^6.9.1:
20732065
version "6.12.6"
20742066
resolved "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz"
20752067
integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==
@@ -2284,11 +2276,6 @@ array-union@^2.1.0:
22842276
resolved "https://registry.npmjs.org/array-union/-/array-union-2.1.0.tgz"
22852277
integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw==
22862278

2287-
assert-plus@^1.0.0:
2288-
version "1.0.0"
2289-
resolved "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz"
2290-
integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==
2291-
22922279
astral-regex@^2.0.0:
22932280
version "2.0.0"
22942281
resolved "https://registry.npmjs.org/astral-regex/-/astral-regex-2.0.0.tgz"
@@ -2538,7 +2525,7 @@ buffer-from@^1.0.0:
25382525
resolved "https://registry.npmjs.org/buffer-from/-/buffer-from-1.1.2.tgz"
25392526
integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ==
25402527

2541-
buffer@^5.1.0, buffer@^5.5.0:
2528+
buffer@^5.5.0:
25422529
version "5.7.1"
25432530
resolved "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz"
25442531
integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==
@@ -2762,14 +2749,6 @@ cli-spinners@^2.5.0:
27622749
resolved "https://registry.npmjs.org/cli-spinners/-/cli-spinners-2.9.2.tgz"
27632750
integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg==
27642751

2765-
cli-truncate@^2.1.0:
2766-
version "2.1.0"
2767-
resolved "https://registry.npmjs.org/cli-truncate/-/cli-truncate-2.1.0.tgz"
2768-
integrity sha512-n8fOixwDD6b/ObinzTrp1ZKFzbgvKZvuz/TvejnLn1aQfC6r52XEx85FmuC+3HI+JM7coBRXUvNqEU2PHVrHpg==
2769-
dependencies:
2770-
slice-ansi "^3.0.0"
2771-
string-width "^4.2.0"
2772-
27732752
cli-truncate@^4.0.0:
27742753
version "4.0.0"
27752754
resolved "https://registry.npmjs.org/cli-truncate/-/cli-truncate-4.0.0.tgz"
@@ -2937,7 +2916,7 @@ core-js-compat@^3.38.0, core-js-compat@^3.38.1, core-js-compat@^3.40.0:
29372916
dependencies:
29382917
browserslist "^4.24.3"
29392918

2940-
core-util-is@~1.0.0, [email protected]:
2919+
core-util-is@~1.0.0:
29412920
version "1.0.2"
29422921
resolved "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz"
29432922
integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==
@@ -2957,13 +2936,6 @@ crc-32@^1.2.0:
29572936
resolved "https://registry.npmjs.org/crc-32/-/crc-32-1.2.2.tgz"
29582937
integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ==
29592938

2960-
crc@^3.8.0:
2961-
version "3.8.0"
2962-
resolved "https://registry.npmjs.org/crc/-/crc-3.8.0.tgz"
2963-
integrity sha512-iX3mfgcTMIq3ZKLIsVFAbv7+Mc10kxabAGQb8HvjA1o3T1PIYprbakQ65d3I+2HGHt6nSKkM9PYjgoJO2KcFBQ==
2964-
dependencies:
2965-
buffer "^5.1.0"
2966-
29672939
crc32-stream@^4.0.2:
29682940
version "4.0.3"
29692941
resolved "https://registry.npmjs.org/crc32-stream/-/crc32-stream-4.0.3.tgz"
@@ -3171,20 +3143,6 @@ [email protected]:
31713143
optionalDependencies:
31723144
dmg-license "^1.0.11"
31733145

3174-
dmg-license@^1.0.11:
3175-
version "1.0.11"
3176-
resolved "https://registry.npmjs.org/dmg-license/-/dmg-license-1.0.11.tgz"
3177-
integrity sha512-ZdzmqwKmECOWJpqefloC5OJy1+WZBBse5+MR88z9g9Zn4VY+WYUkAyojmhzJckH5YbbZGcYIuGAkY5/Ys5OM2Q==
3178-
dependencies:
3179-
"@types/plist" "^3.0.1"
3180-
"@types/verror" "^1.10.3"
3181-
ajv "^6.10.0"
3182-
crc "^3.8.0"
3183-
iconv-corefoundation "^1.1.7"
3184-
plist "^3.0.4"
3185-
smart-buffer "^4.0.2"
3186-
verror "^1.10.0"
3187-
31883146
dot-prop@^9.0.0:
31893147
version "9.0.0"
31903148
resolved "https://registry.npmjs.org/dot-prop/-/dot-prop-9.0.0.tgz"
@@ -3763,11 +3721,6 @@ extract-zip@^2.0.0, extract-zip@^2.0.1:
37633721
optionalDependencies:
37643722
"@types/yauzl" "^2.9.1"
37653723

3766-
extsprintf@^1.2.0:
3767-
version "1.4.1"
3768-
resolved "https://registry.npmjs.org/extsprintf/-/extsprintf-1.4.1.tgz"
3769-
integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA==
3770-
37713724
fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3:
37723725
version "3.1.3"
37733726
resolved "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz"
@@ -4027,11 +3980,6 @@ fs.realpath@^1.0.0:
40273980
resolved "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz"
40283981
integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==
40293982

4030-
fsevents@^2.3.2, fsevents@~2.3.2, fsevents@~2.3.3:
4031-
version "2.3.3"
4032-
resolved "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz"
4033-
integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==
4034-
40353983
function-bind@^1.1.2:
40363984
version "1.1.2"
40373985
resolved "https://registry.npmjs.org/function-bind/-/function-bind-1.1.2.tgz"
@@ -4417,14 +4365,6 @@ humanize-ms@^1.2.1:
44174365
dependencies:
44184366
ms "^2.0.0"
44194367

4420-
iconv-corefoundation@^1.1.7:
4421-
version "1.1.7"
4422-
resolved "https://registry.npmjs.org/iconv-corefoundation/-/iconv-corefoundation-1.1.7.tgz"
4423-
integrity sha512-T10qvkw0zz4wnm560lOEg0PovVqUXuOFhhHAkixw8/sycy7TJt7v/RrkEKEQnAw2viPSJu6iAkErxnzR0g8PpQ==
4424-
dependencies:
4425-
cli-truncate "^2.1.0"
4426-
node-addon-api "^1.6.3"
4427-
44284368
iconv-lite@^0.6.2:
44294369
version "0.6.3"
44304370
resolved "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz"
@@ -5760,11 +5700,6 @@ node-abi@^3.45.0:
57605700
dependencies:
57615701
semver "^7.3.5"
57625702

5763-
node-addon-api@^1.6.3:
5764-
version "1.7.2"
5765-
resolved "https://registry.npmjs.org/node-addon-api/-/node-addon-api-1.7.2.tgz"
5766-
integrity sha512-ibPK3iA+vaY1eEjESkQkM0BbCqFOaZMiXRTtdB0u7b4djtY6JnsjvPdUHVMg6xQt3B8fpTTWHI9A+ADjM9frzg==
5767-
57685703
node-api-version@^0.2.0:
57695704
version "0.2.0"
57705705
resolved "https://registry.npmjs.org/node-api-version/-/node-api-version-0.2.0.tgz"
@@ -6090,7 +6025,7 @@ pkg-dir@^4.2.0:
60906025
dependencies:
60916026
find-up "^4.0.0"
60926027

6093-
plist@^3.0.4, plist@^3.0.5, plist@^3.1.0:
6028+
plist@^3.0.5, plist@^3.1.0:
60946029
version "3.1.0"
60956030
resolved "https://registry.npmjs.org/plist/-/plist-3.1.0.tgz"
60966031
integrity sha512-uysumyrvkUX0rX/dEVqt8gC3sTBzd4zoWfLeS29nb53imdaXVvLINYXTI2GNqzaMuvacNx4uJQ8+b3zXR0pkgQ==
@@ -6779,15 +6714,6 @@ slash@^3.0.0:
67796714
resolved "https://registry.npmjs.org/slash/-/slash-3.0.0.tgz"
67806715
integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q==
67816716

6782-
slice-ansi@^3.0.0:
6783-
version "3.0.0"
6784-
resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-3.0.0.tgz"
6785-
integrity sha512-pSyv7bSTC7ig9Dcgbw9AuRNUb5k5V6oDudjZoMBSr13qpLBG7tB+zgCkARjq7xIUgdz5P1Qe8u+rSGdouOOIyQ==
6786-
dependencies:
6787-
ansi-styles "^4.0.0"
6788-
astral-regex "^2.0.0"
6789-
is-fullwidth-code-point "^3.0.0"
6790-
67916717
slice-ansi@^4.0.0:
67926718
version "4.0.0"
67936719
resolved "https://registry.npmjs.org/slice-ansi/-/slice-ansi-4.0.0.tgz"
@@ -6805,7 +6731,7 @@ slice-ansi@^5.0.0:
68056731
ansi-styles "^6.0.0"
68066732
is-fullwidth-code-point "^4.0.0"
68076733

6808-
smart-buffer@^4.0.2, smart-buffer@^4.2.0:
6734+
smart-buffer@^4.2.0:
68096735
version "4.2.0"
68106736
resolved "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz"
68116737
integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==
@@ -7542,15 +7468,6 @@ vary@~1.1.2:
75427468
resolved "https://registry.npmjs.org/vary/-/vary-1.1.2.tgz"
75437469
integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg==
75447470

7545-
verror@^1.10.0:
7546-
version "1.10.1"
7547-
resolved "https://registry.npmjs.org/verror/-/verror-1.10.1.tgz"
7548-
integrity sha512-veufcmxri4e3XSrT0xwfUR7kguIkaxBeosDg00yDWhk49wdwkSUrvvsm7nc75e1PUyvIeZj6nS8VQRYz2/S4Xg==
7549-
dependencies:
7550-
assert-plus "^1.0.0"
7551-
core-util-is "1.0.2"
7552-
extsprintf "^1.2.0"
7553-
75547471
"vite@^4.0.0 || ^5.0.0 || ^6.0.0", vite@^6.2.1:
75557472
version "6.2.3"
75567473
resolved "https://registry.npmjs.org/vite/-/vite-6.2.3.tgz"
@@ -7655,7 +7572,7 @@ write-file-atomic@^5.0.1:
76557572
imurmurhash "^0.1.4"
76567573
signal-exit "^4.0.1"
76577574

7658-
xmlbuilder@^15.1.1, xmlbuilder@>=11.0.1:
7575+
xmlbuilder@^15.1.1:
76597576
version "15.1.1"
76607577
resolved "https://registry.npmjs.org/xmlbuilder/-/xmlbuilder-15.1.1.tgz"
76617578
integrity sha512-yMqGBqtXyeN1e3TGYvgNgDVZ3j84W4cwkOXQswghol6APgZWaff9lnbvN7MHYJOiXsvGPXtjTYJEiC9J2wv9Eg==

0 commit comments

Comments
 (0)