diff options
author | Timmy Willison <timmywil@users.noreply.github.com> | 2024-07-17 09:32:02 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-07-17 09:32:02 -0400 |
commit | 3e612aeeb3821c657989e67b43c9b715f5cd32e2 (patch) | |
tree | 08340dbc99ae23a7268a1c262334ddcb31d2dc6f /build/release | |
parent | 1fa8df5dbd5d84cf55882a38eb6e571abd0aa938 (diff) | |
download | jquery-3e612aeeb3821c657989e67b43c9b715f5cd32e2.tar.gz jquery-3e612aeeb3821c657989e67b43c9b715f5cd32e2.zip |
Release: ensure builds have the proper version
- order hooks in execution order
- update workflow actions
Closes gh-5519
Diffstat (limited to 'build/release')
-rw-r--r-- | build/release/verify.js | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/build/release/verify.js b/build/release/verify.js index 43d77f800..f167666b2 100644 --- a/build/release/verify.js +++ b/build/release/verify.js @@ -24,13 +24,14 @@ const REGISTRY_URL = "https://registry.npmjs.org/jquery"; const rstable = /^(\d+\.\d+\.\d+)$/; -export async function verifyRelease( { version } = {} ) { +async function verifyRelease( { version } = {} ) { if ( !version ) { version = process.env.VERSION || ( await getLatestVersion() ); } - console.log( `Checking jQuery ${ version }...` ); const release = await buildRelease( { version } ); + console.log( `Verifying jQuery ${ version }...` ); + let verified = true; // Only check stable versions against the CDN @@ -139,8 +140,8 @@ async function buildRelease( { version } ) { .filter( ( dirent ) => dirent.isFile() ) .map( async( dirent ) => ( { name: dirent.name, - path: path.basename( dirent.path ), - contents: await readFile( path.join( dirent.path, dirent.name ), "utf8" ) + path: path.basename( dirent.parentPath ), + contents: await readFile( path.join( dirent.parentPath, dirent.name ), "utf8" ) } ) ) ); @@ -196,3 +197,5 @@ async function sumTarball( filepath ) { const unzipped = await gunzip( contents ); return shasum( unzipped ); } + +verifyRelease(); |