Skip to content

Commit 9224c48

Browse files
authored
chore: patch playwright-core to remove curl -k usage on macOS (#147)
* chore: patch playwright-core to remove curl -k usage on macOS * chore: update node and pnpm versions in actions workflow
1 parent 4ac59f3 commit 9224c48

5 files changed

Lines changed: 99 additions & 12 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,18 @@ jobs:
99
steps:
1010
- uses: actions/checkout@v4
1111

12-
- name: Setup Node and pnpm
13-
uses: silverhand-io/actions-node-pnpm-run-steps@v5
12+
- uses: pnpm/action-setup@v4.2.0
13+
with:
14+
version: 10
15+
16+
- uses: actions/setup-node@v6
17+
with:
18+
node-version: 22.14.0
19+
registry-url: https://registry.npmjs.org/
20+
cache: 'pnpm'
1421

1522
- name: Build
16-
run: pnpm build
23+
run: pnpm i && pnpm build
1724

1825
- name: Deploy
1926
uses: cloudflare/wrangler-action@v3

.github/workflows/main.yml

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,18 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- name: Setup Node and pnpm
15-
uses: silverhand-io/actions-node-pnpm-run-steps@v5
14+
- uses: pnpm/action-setup@v4.2.0
15+
with:
16+
version: 10
17+
18+
- uses: actions/setup-node@v6
19+
with:
20+
node-version: 22.14.0
21+
registry-url: https://registry.npmjs.org/
22+
cache: 'pnpm'
1623

1724
- name: Build
18-
run: pnpm build
25+
run: pnpm i && pnpm build
1926

2027
- name: Test
2128
run: pnpm test

package.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,9 @@
4747
"esbuild@<0.25.0": "^0.25.0",
4848
"mermaid-isomorphic": "github:silverhand-io/mermaid-isomorphic#c081c30",
4949
"vite@<6.4.1": "^6.4.1"
50+
},
51+
"patchedDependencies": {
52+
"playwright-core@1.48.2": "patches/playwright-core@1.48.2.patch"
5053
}
5154
}
5255
}
Lines changed: 65 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,65 @@
1+
diff --git a/bin/reinstall_chrome_beta_mac.sh b/bin/reinstall_chrome_beta_mac.sh
2+
index b6e1990cfc8b3f3cae717dd19f5b4a9470d12b6f..a8211e157273e33e1c26dfe1cff9c79c12575d2a 100755
3+
--- a/bin/reinstall_chrome_beta_mac.sh
4+
+++ b/bin/reinstall_chrome_beta_mac.sh
5+
@@ -4,7 +4,7 @@ set -x
6+
7+
rm -rf "/Applications/Google Chrome Beta.app"
8+
cd /tmp
9+
-curl -o ./googlechromebeta.dmg -k https://dl.google.com/chrome/mac/universal/beta/googlechromebeta.dmg
10+
+curl -o ./googlechromebeta.dmg https://dl.google.com/chrome/mac/universal/beta/googlechromebeta.dmg
11+
hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechromebeta.dmg ./googlechromebeta.dmg
12+
cp -pR "/Volumes/googlechromebeta.dmg/Google Chrome Beta.app" /Applications
13+
hdiutil detach /Volumes/googlechromebeta.dmg
14+
diff --git a/bin/reinstall_chrome_stable_mac.sh b/bin/reinstall_chrome_stable_mac.sh
15+
index 91d826c0148e1fb0396cf787371f97342903e98c..b5ab4172dc64c20049ad58b6b9b1c5ce42266f0e 100755
16+
--- a/bin/reinstall_chrome_stable_mac.sh
17+
+++ b/bin/reinstall_chrome_stable_mac.sh
18+
@@ -4,7 +4,7 @@ set -x
19+
20+
rm -rf "/Applications/Google Chrome.app"
21+
cd /tmp
22+
-curl -o ./googlechrome.dmg -k https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg
23+
+curl -o ./googlechrome.dmg https://dl.google.com/chrome/mac/universal/stable/GGRO/googlechrome.dmg
24+
hdiutil attach -nobrowse -quiet -noautofsck -noautoopen -mountpoint /Volumes/googlechrome.dmg ./googlechrome.dmg
25+
cp -pR "/Volumes/googlechrome.dmg/Google Chrome.app" /Applications
26+
hdiutil detach /Volumes/googlechrome.dmg
27+
diff --git a/bin/reinstall_msedge_beta_mac.sh b/bin/reinstall_msedge_beta_mac.sh
28+
index 69c0602485afd1015089a53fe5ddca0176d8e6d2..6e411480018b4b59deb4459d451cdda54ecc70e9 100755
29+
--- a/bin/reinstall_msedge_beta_mac.sh
30+
+++ b/bin/reinstall_msedge_beta_mac.sh
31+
@@ -3,7 +3,7 @@ set -e
32+
set -x
33+
34+
cd /tmp
35+
-curl -o ./msedge_beta.pkg -k "$1"
36+
+curl -o ./msedge_beta.pkg "$1"
37+
# Note: there's no way to uninstall previously installed MSEdge.
38+
# However, running PKG again seems to update installation.
39+
sudo installer -pkg /tmp/msedge_beta.pkg -target /
40+
diff --git a/bin/reinstall_msedge_dev_mac.sh b/bin/reinstall_msedge_dev_mac.sh
41+
index 0ad05b0a2b2e9a53d3a45f327324bea03b1a463f..84c7d474cf58f669c7a3368afe3ac741423bad5d 100755
42+
--- a/bin/reinstall_msedge_dev_mac.sh
43+
+++ b/bin/reinstall_msedge_dev_mac.sh
44+
@@ -3,7 +3,7 @@ set -e
45+
set -x
46+
47+
cd /tmp
48+
-curl -o ./msedge_dev.pkg -k "$1"
49+
+curl -o ./msedge_dev.pkg "$1"
50+
# Note: there's no way to uninstall previously installed MSEdge.
51+
# However, running PKG again seems to update installation.
52+
sudo installer -pkg /tmp/msedge_dev.pkg -target /
53+
diff --git a/bin/reinstall_msedge_stable_mac.sh b/bin/reinstall_msedge_stable_mac.sh
54+
index b82cfb37cd20364108825760902538cb461fa379..9532cbcd1b1680c11ffc1f34d44173ccfed8a27d 100755
55+
--- a/bin/reinstall_msedge_stable_mac.sh
56+
+++ b/bin/reinstall_msedge_stable_mac.sh
57+
@@ -3,7 +3,7 @@ set -e
58+
set -x
59+
60+
cd /tmp
61+
-curl -o ./msedge_stable.pkg -k "$1"
62+
+curl -o ./msedge_stable.pkg "$1"
63+
# Note: there's no way to uninstall previously installed MSEdge.
64+
# However, running PKG again seems to update installation.
65+
sudo installer -pkg /tmp/msedge_stable.pkg -target /

pnpm-lock.yaml

Lines changed: 11 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)