From 3e612aeeb3821c657989e67b43c9b715f5cd32e2 Mon Sep 17 00:00:00 2001 From: Timmy Willison Date: Wed, 17 Jul 2024 09:32:02 -0400 Subject: Release: ensure builds have the proper version - order hooks in execution order - update workflow actions Closes gh-5519 --- build/release/verify.js | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'build/release') 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(); -- cgit v1.2.3