File tree Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Expand file tree Collapse file tree 1 file changed +4
-9
lines changed Original file line number Diff line number Diff line change @@ -27,17 +27,12 @@ jobs:
27
27
with :
28
28
github-token : ${{ secrets.GITHUB_TOKEN }}
29
29
script : |
30
- const fs = require('fs');
31
- const output = JSON.parse(fs.readFileSync('output.json', 'utf8'));
32
30
33
- const packages = output.packages
34
- .map((t) => `\`\`\`
35
- pnpm add ${t.url}
36
- \`\`\``)
37
- .join('\n');
38
31
39
32
const body = (number)=>`## \`pkg.pr.new\` for ${context.sha.substring(0, 7)}
40
- ${packages}
33
+ \`\`\`
34
+ pnpm add https://pkg.pr.new/svelte@${number}
35
+ \`\`\`
41
36
42
37
[Open Playground](https://svelte.dev/playground?version=pr-${number})
43
38
`;
87
82
console.log('\nPublished Packages:');
88
83
console.log(packages);
89
84
console.log('\nPlayground URL:');
90
- console.log(`\nhttps://svelte.dev/playground?version=commit-${context.sha}`)
85
+ console.log(`\nhttps://svelte.dev/playground?version=commit-${context.sha.substring(0, 7) }`)
91
86
console.log('\n' + '='.repeat(50));
92
87
}
93
88
You can’t perform that action at this time.
0 commit comments