build: upload node checksums before validating them (#38710)

This commit is contained in:
Samuel Attard 2023-06-09 02:30:26 -07:00 committed by GitHub
parent 38dc43f649
commit 12b85a77a8
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -354,6 +354,7 @@ async function makeRelease (releaseToValidate) {
await validateReleaseAssets(release, true);
} else {
let draftRelease = await getDraftRelease();
uploadNodeShasums();
await createReleaseShasums(draftRelease);
// Fetch latest version of release before verifying
@ -364,7 +365,6 @@ async function makeRelease (releaseToValidate) {
// which fails to publish. It has to be done before the final
// publish to ensure there aren't published releases not contained
// in index.json, which causes other problems in downstream projects
uploadNodeShasums();
uploadIndexJson();
await publishRelease(draftRelease);
console.log(`${pass} SUCCESS!!! Release has been published. Please run ` +