From ac891a42a7d17d615552d934da1e0e55138fda4b Mon Sep 17 00:00:00 2001 From: Liam DeBeasi Date: Thu, 28 Jul 2022 10:05:06 -0400 Subject: [PATCH] ci(release): purge JSDelivr cache on release (#25687) --- .github/workflows/release.yml | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) 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 + ]}' +