0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-11-21 11:28:58 +01:00

fix: find the right sha for logging (#14159)

This commit is contained in:
Paolo Ricciuti 2024-11-05 17:05:21 +01:00 committed by GitHub
parent 0c853208ce
commit e786729555
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -75,13 +75,17 @@ jobs:
}
async function log_publish_info() {
const svelte_package = output.packages.find(p => p.name === 'svelte');
const svelte_sha = svelte_package.url.replace(/^.+@([^@]+)$/, '$1');
console.log('\n' + '='.repeat(50));
console.log('Publish Information');
console.log('='.repeat(50));
console.log('\nPublished Packages:');
console.log(output.packages.map((p) => `${p.name} - pnpm add https://pkg.pr.new/${p.name}@${number}`).join('\n'));
console.log('\nPlayground URL:');
console.log(`\nhttps://svelte.dev/playground?version=commit-${output.sha.substring(0, 7)}`)
console.log(output.packages.map((p) => `${p.name} - pnpm add https://pkg.pr.new/${p.name}@${p.url.replace(/^.+@([^@]+)$/, '$1')}`).join('\n'));
if(svelte_sha){
console.log('\nPlayground URL:');
console.log(`\nhttps://svelte.dev/playground?version=commit-${svelte_sha}`)
}
console.log('\n' + '='.repeat(50));
}