File tree 1 file changed +7
-3
lines changed 1 file changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -75,13 +75,17 @@ jobs:
75
75
}
76
76
77
77
async function log_publish_info() {
78
+ const svelte_package = output.packages.find(p => p.name === 'svelte');
79
+ const svelte_sha = svelte_package.url.replace(/^.+@([^@]+)$/, '$1');
78
80
console.log('\n' + '='.repeat(50));
79
81
console.log('Publish Information');
80
82
console.log('='.repeat(50));
81
83
console.log('\nPublished Packages:');
82
- console.log(output.packages.map((p) => `${p.name} - pnpm add https://pkg.pr.new/${p.name}@${number}`).join('\n'));
83
- console.log('\nPlayground URL:');
84
- console.log(`\nhttps://svelte.dev/playground?version=commit-${output.sha.substring(0, 7)}`)
84
+ console.log(output.packages.map((p) => `${p.name} - pnpm add https://pkg.pr.new/${p.name}@${p.url.replace(/^.+@([^@]+)$/, '$1')}`).join('\n'));
85
+ if(svelte_sha){
86
+ console.log('\nPlayground URL:');
87
+ console.log(`\nhttps://svelte.dev/playground?version=commit-${svelte_sha}`)
88
+ }
85
89
console.log('\n' + '='.repeat(50));
86
90
}
87
91
You can’t perform that action at this time.
0 commit comments