Skip to content

Commit

Permalink
Merge pull request #105 from takuma-ru/fix/104
Browse files Browse the repository at this point in the history
🐛 chore: Update package path in release script
  • Loading branch information
takuma-ru committed May 9, 2024
2 parents a887c88 + 04459c2 commit 4a545dd
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .scripts/release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const packageJsonPath = path.join(
__dirname,
"..",
"packages",
"auto-story-generator",
"core",
"package.json"
);

Expand All @@ -20,7 +20,9 @@ try {
const branchName = `release/${new Date()
.toISOString()
.replace(/[-:.]/g, "")}`;
execSync(`git switch -c ${branchName}`);

execSync(`git fetch origin main`);
execSync(`git switch -c ${branchName} main`);
execSync(`git push --set-upstream origin ${branchName}`);

console.log("[Result] Branch name:", branchName);
Expand Down

0 comments on commit 4a545dd

Please sign in to comment.