Skip to content

Commit

Permalink
ci(release): whitespace
Browse files Browse the repository at this point in the history
Co-authored-by: Vlad Frangu <[email protected]>
  • Loading branch information
ckohen and vladfrangu committed Jun 19, 2024
1 parent cc98110 commit d526ed9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ async function getReleaseEntries() {
const releaseEntries: ReleaseEntry[] = [];
const packageList: pnpmTree[] =
await $`pnpm list --recursive --only-projects --filter {packages/\*} --prod --json`.json();

for (const pkg of packageList) {
// Don't release private packages ever (npm will error anyways)
if (pkg.private) continue;
Expand Down
2 changes: 2 additions & 0 deletions packages/actions/src/releasePackages/releasePackage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,14 @@ async function gitTagAndRelease(release: ReleaseEntry, dry: boolean) {
const tagName = `${release.name === 'discord.js' ? `` : `${release.name}@`}${release.version}`;
// Don't throw, if this exits non-zero it's probably because the tag already exists
await $`git tag ${tagName}`.nothrow();

if (dry) {
info(`[DRY] Tag "${tagName}" created, skipping push and release creation.`);
return;
}

await $`git push --tags`;

try {
await octokit?.rest.repos.createRelease({
...context.repo,
Expand Down

0 comments on commit d526ed9

Please sign in to comment.