Skip to content

Commit 7f81ee3

Browse files
authored
Update preview-publish.yml
1 parent c56fc7b commit 7f81ee3

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

.github/workflows/preview-publish.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,23 @@ jobs:
4545
const installCmd = `npm i ${pkg.url}`;
4646
const badge = `[![pkg.pr.new](https://pkg.pr.new/badge/${context.repo.owner}/${context.repo.repo})](https://pkg.pr.new/~/${context.repo.owner}/${context.repo.repo})`;
4747
const body = `### 🚀 Package Preview Available!
48-
\n${badge}\n\n---\n\n**Install this PR's preview build with npm:**\n\n\sh\n${installCmd}\n\\n\n- 📦 [Preview Package on pkg.pr.new](${pkg.url})\n- 🔗 [View this commit on GitHub](https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${pkg.commit})\n\n---\n<sub>Preview powered by [pkg.pr.new](https://pkg.pr.new) — try new features instantly, no NPM release needed!</sub>\n`;
48+
49+
${badge}
50+
51+
---
52+
53+
**Install this PR's preview build with npm:**
54+
55+
\`\`\`sh
56+
${installCmd}
57+
\`\`\`
58+
59+
- 📦 [Preview Package on pkg.pr.new](${pkg.url})
60+
- 🔗 [View this commit on GitHub](https://github.com/${context.repo.owner}/${context.repo.repo}/commit/${pkg.commit})
61+
62+
---
63+
<sub>Preview powered by [pkg.pr.new](https://pkg.pr.new) — try new features instantly, no NPM release needed!</sub>
64+
`;
4965
5066
const botCommentIdentifier = '### 🚀 Package Preview Available!';
5167
@@ -89,4 +105,4 @@ jobs:
89105
if (context.issue.number) {
90106
await createOrUpdateComment(context.issue.number);
91107
}
92-
}
108+
}

0 commit comments

Comments
 (0)