mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-19 03:32:21 +08:00
ci(release): purge JSDelivr cache on release (#25687)
This commit is contained in:
17
.github/workflows/release.yml
vendored
17
.github/workflows/release.yml
vendored
@ -61,4 +61,21 @@ jobs:
|
|||||||
git add .
|
git add .
|
||||||
git commit -m "chore(): update package lock files"
|
git commit -m "chore(): update package lock files"
|
||||||
git push
|
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
|
||||||
|
]}'
|
||||||
|
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user