Skip to content

Commit

Permalink
fix publish (#58)
Browse files Browse the repository at this point in the history
  • Loading branch information
mangs authored Mar 29, 2024
1 parent 7984299 commit 4c76df5
Showing 1 changed file with 4 additions and 6 deletions.
10 changes: 4 additions & 6 deletions scripts/publishReleaseNotes.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -104,14 +104,13 @@ try {
'Content-Type': 'application/json',
// 'User-Agent': repositoryMetadata,
},
method: 'POST',
});
console.log('✅ SUCCESS CREATING RELEASE');
prettyPrintJson(response);
} catch (error) {
console.error('❌ ERROR CREATING RELEASE');
prettyPrintJson(error);
// eslint-disable-next-line n/no-process-exit -- stack trace not useful here
process.exit(1);
throw error;
}

// Update the latest major tag version to the latest commit SHA
Expand All @@ -136,13 +135,12 @@ try {
'Content-Type': 'application/json',
// 'User-Agent': repositoryMetadata,
},
method: 'PATCH',
},
);
console.log('✅ SUCCESS UPDATING MAJOR TAG');
prettyPrintJson(response);
} catch (error) {
console.error('❌ ERROR UPDATING MAJOR TAG');
prettyPrintJson(error);
// eslint-disable-next-line n/no-process-exit -- stack trace not useful here
process.exit(1);
throw error;
}

0 comments on commit 4c76df5

Please sign in to comment.