Skip to content

Commit 541ca2d

Browse files
authored
[8.x] Update jQuery to 3.7.1 (#1165)
* [8.x] Automatically update jQuery when `package-lock.json` has been modified Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Compile Assets * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * wip Signed-off-by: Mior Muhammad Zaki <[email protected]> * Update update-jquery.yml --------- Signed-off-by: Mior Muhammad Zaki <[email protected]> Co-authored-by: crynobone <[email protected]>
1 parent 4737b31 commit 541ca2d

File tree

6 files changed

+64
-2
lines changed

6 files changed

+64
-2
lines changed

.gitattributes

+2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313
.gitignore export-ignore
1414
.styleci.yml export-ignore
1515
CHANGELOG.md export-ignore
16+
package.json export-ignore
17+
package-lock.json export-ignore
1618
phpstan.neon.dist export-ignore
1719
phpunit.xml.dist export-ignore
1820
testbench.yaml export-ignore

.github/workflows/update-jquery.yml

+35
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: 'update jquery'
2+
3+
on:
4+
push:
5+
paths:
6+
- 'package-lock.json'
7+
pull_request:
8+
paths:
9+
- 'package-lock.json'
10+
workflow_dispatch:
11+
12+
permissions:
13+
contents: write
14+
15+
jobs:
16+
update:
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- name: Checkout code
21+
uses: actions/checkout@v4
22+
23+
- uses: actions/setup-node@v4
24+
with:
25+
node-version: 16
26+
27+
- name: Copy jQuery from node_module
28+
run: |
29+
npm ci
30+
cp ./node_modules/jquery/dist/jquery.min.js ./bin/jquery.js
31+
32+
- name: Commit compiled files
33+
uses: stefanzweifel/git-auto-commit-action@v5
34+
with:
35+
commit_message: Update `jquery.js`

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
/node_modules
12
/vendor
23
composer.lock
34
/phpunit.xml

bin/jquery.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package-lock.json

+18
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"private": true,
3+
"dependencies": {
4+
"jquery": "^3.7.1"
5+
}
6+
}

0 commit comments

Comments
 (0)