From 9a6ce0f1136a8c693449c4fdbd63104f6487d48b Mon Sep 17 00:00:00 2001 From: takuma-ru Date: Fri, 7 Jun 2024 15:57:19 +0900 Subject: [PATCH 1/3] =?UTF-8?q?=F0=9F=94=A5=20Delete=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/release/src/action/index.ts | 10 ---------- 1 file changed, 10 deletions(-) diff --git a/packages/release/src/action/index.ts b/packages/release/src/action/index.ts index 350502f..ac39d78 100644 --- a/packages/release/src/action/index.ts +++ b/packages/release/src/action/index.ts @@ -18,23 +18,13 @@ export const releaseAction = async (options: unknown) => { const { newVersion, packageName } = packageVersionUp({ level, pre }); - // Build the package cmd(BUILD_CMD); - // Commit and push the changes cmd(`git add ${join(__dirname, PACKAGE_JSON_PATH)}`); cmd(`git commit -m "Release version ${newVersion}"`); cmd(`git push origin ${branchName}`); - // Publish the package cmd(`pnpm publish --filter ${packageName} --no-git-checks`); - - // Output the branch name - // console.log(branchName); - /** - * branch_name=$(node release.js major) - * echo "The release was made on branch: $branch_name" - */ } catch (error) { if (error instanceof z.ZodError) { error.errors.map((error) => { From 43f2ad3150af5d06e32a50a5f139c20849203d25 Mon Sep 17 00:00:00 2001 From: takuma-ru Date: Fri, 7 Jun 2024 15:58:38 +0900 Subject: [PATCH 2/3] =?UTF-8?q?=F0=9F=92=9A=20Enable=20Release=20Drafter?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../{release-drafter.yml-disable => release-drafter.yml} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/workflows/{release-drafter.yml-disable => release-drafter.yml} (100%) diff --git a/.github/workflows/release-drafter.yml-disable b/.github/workflows/release-drafter.yml similarity index 100% rename from .github/workflows/release-drafter.yml-disable rename to .github/workflows/release-drafter.yml From 81c6458513b4036a65c79c9e0e5f486f8a554216 Mon Sep 17 00:00:00 2001 From: takuma-ru Date: Fri, 7 Jun 2024 16:00:58 +0900 Subject: [PATCH 3/3] =?UTF-8?q?=F0=9F=92=9A=20Disable=20Release=20Drafter?= =?UTF-8?q?=20with=20push=20event?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/release-drafter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/release-drafter.yml b/.github/workflows/release-drafter.yml index 5c109e5..652d394 100644 --- a/.github/workflows/release-drafter.yml +++ b/.github/workflows/release-drafter.yml @@ -1,7 +1,7 @@ name: Release Drafter on: - push: + # push: # branches to consider in the event; optional, defaults to all # branches: # - master