Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
(async function() {
const cli = new SentryCli();
console.log(`Creating release ${release}`);
console.log(await cli.releases.new(release));
console.log('Uploading source maps');
console.log(await cli.releases.uploadSourceMaps(release, options));
console.log('Setting commits');
console.log(await helper.execute(['releases', 'set-commits', '--auto', release]));
console.log('Finalizing release');
console.log(await cli.releases.finalize(release));
console.log('Release finalized');
})().catch(error => {
console.error(error);