ci(release): purge JSDelivr cache on release (#25687)

This commit is contained in:
Liam DeBeasi
2022-07-28 10:05:06 -04:00
committed by GitHub
parent e72a582369
commit ac891a42a7

View File

@ -61,4 +61,21 @@ jobs:
git add .
git commit -m "chore(): update package lock files"
git push
# Purge the JSDeliver CDN cache so
# component playgrounds always load
# the latest version of Ionic.
- name: Purge JSDelivr Cache
run: |
curl -X POST \
https://purge.jsdelivr.net/ \
-H 'cache-control: no-cache' \
-H 'content-type: application/json' \
-d '{
"path": [
"/npm/@ionic/core@6/dist/ionic/ionic.esm.js",
"/npm/@ionic/core@latest/dist/ionic/ionic.esm.js",
"/npm/@ionic/core@6/css/ionic.bundle.css,
"/npm/@ionic/core@latest/css/ionic.bundle.css
]}'