Skip to content

Commit ac891a4

Browse files
authored
ci(release): purge JSDelivr cache on release (#25687)
1 parent e72a582 commit ac891a4

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

.github/workflows/release.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,21 @@ jobs:
6161
git add .
6262
git commit -m "chore(): update package lock files"
6363
git push
64+
# Purge the JSDeliver CDN cache so
65+
# component playgrounds always load
66+
# the latest version of Ionic.
67+
- name: Purge JSDelivr Cache
68+
run: |
69+
curl -X POST \
70+
https://purge.jsdelivr.net/ \
71+
-H 'cache-control: no-cache' \
72+
-H 'content-type: application/json' \
73+
-d '{
74+
"path": [
75+
"/npm/@ionic/core@6/dist/ionic/ionic.esm.js",
76+
"/npm/@ionic/core@latest/dist/ionic/ionic.esm.js",
77+
"/npm/@ionic/core@6/css/ionic.bundle.css,
78+
"/npm/@ionic/core@latest/css/ionic.bundle.css
79+
]}'
80+
6481

0 commit comments

Comments
 (0)