Skip to content

Commit 6d3797d

Browse files
committed
update cdn cache
1 parent 3a9e02a commit 6d3797d

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

scripts/purge-cdn-cache.js

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const fs = require('node:fs')
33
const path = require('node:path')
44
/**
55
* Given a package name and a relative path to the dist folder -- it reads all the files and runs them through the jsdelivr cache purge API.
6-
* Will abort the API unless the current commit has a tag with the package name on it.
6+
* On CI, will abort the purge unless the current commit has a tag with the package name on it.
77
*/
88
const purgeJsDelivrCache = async (packageName, relativePath) => {
99
console.log(`\n\n`)
@@ -63,9 +63,7 @@ const purgeJsDelivrCache = async (packageName, relativePath) => {
6363
const [packageName, relativePath] = process.argv.slice(2)
6464

6565
if (!packageName || !relativePath) {
66-
console.error(
67-
'Usage: node purge-jsdeliver-cache-signals.js <package-name> <relative-path>'
68-
)
66+
console.error('Usage: node purge-cdn-cache.js <package-name> <relative-path>')
6967
process.exit(1)
7068
}
7169

0 commit comments

Comments
 (0)