diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6aa1bcd8cb..6df95c181d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 + ]}' +