File tree Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Expand file tree Collapse file tree 1 file changed +12
-5
lines changed Original file line number Diff line number Diff line change 1717 with :
1818 fetch-depth : 0
1919
20+ - name : ⬇️ Checkout PR
21+ run : |
22+ git fetch origin pull/${{ github.event.issue.number }}/head:pr-find-commit
23+ git checkout pr-find-commit
24+
2025 - name : Install pnpm
2126 uses : pnpm/action-setup@v3
2227 with :
@@ -50,13 +55,15 @@ jobs:
5055 const { issue: { number: issue_number }, repo: { owner, repo }, payload } = context;
5156 const { name: packageName, version } = require(`${process.env.GITHUB_WORKSPACE}/package.json`);
5257
58+ const body = [
59+ `npm package published to pre tag.`,
60+ `\`\`\`bash\nnpm install ${packageName}@pre\n\`\`\``
61+ `\`\`\`bash\nnpm install ${packageName}@${version}\n\`\`\``
62+ ].join('\n\n');
63+
5364 await github.rest.issues.updateComment({
5465 owner,
5566 repo,
5667 comment_id: payload.comment.id,
57- body: [
58- `npm package published to pre tag.`,
59- `\`\`\`bash\nnpm install ${packageName}@pre\n\`\`\``
60- `\`\`\`bash\nnpm install ${packageName}@${version}\n\`\`\``
61- ].join('\n\n'),
68+ body,
6269 });
You can’t perform that action at this time.
0 commit comments