Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

♻️ Integrate genStoryFile and runGenStoryFile #74

Merged
merged 1 commit into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .scripts/release.cjs
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,11 @@ const packageJsonPath = path.join(
);

try {
// Create a new branch and push it to origin
const branchName = `release/${new Date().toISOString().replace(/[-:.]/g, "")}`;
execSync(`git checkout -b ${branchName}`);
execSync(`git push --set-upstream origin ${branchName}`);

// Read the package.json file
const packageJson = JSON.parse(fs.readFileSync(packageJsonPath, "utf8"));

Expand Down Expand Up @@ -48,11 +53,6 @@ try {
// Write the updated package.json back to file
fs.writeFileSync(packageJsonPath, JSON.stringify(packageJson, null, 2));

// Create a new branch and push it to origin
const branchName = `release/${new Date().toISOString().replace(/[-:.]/g, "")}`;
execSync(`git checkout -b ${branchName}`);
execSync(`git push --set-upstream origin ${branchName}`);

// Build the package
execSync("pnpm asg build", { stdio: "inherit" });

Expand Down
18 changes: 0 additions & 18 deletions packages/auto-story-generator/.release-it.cjs

This file was deleted.

11 changes: 2 additions & 9 deletions packages/auto-story-generator/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,7 @@
"lint:fix": "eslint --ext .ts,.js . --fix",
"lint:type-check": "tsc --noEmit",
"format": "prettier --write .",
"format:check": "prettier --check .",
"publish:major": "pnpm build && pnpm dlx release-it major --ci -VV",
"publish:minor": "pnpm build && pnpm dlx release-it minor --ci -VV",
"publish:patch": "pnpm build && pnpm dlx release-it patch --ci -VV",
"publish:major-beta": "pnpm build && pnpm dlx release-it major --preRelease=beta --ci -VV",
"publish:minor-beta": "pnpm build && pnpm dlx release-it minor --preRelease=beta --ci -VV",
"publish:patch-beta": "pnpm build && pnpm dlx release-it patch --preRelease=beta --ci -VV",
"publish:prerelease": "pnpm build && pnpm dlx release-it --preRelease --ci -VV"
"format:check": "prettier --check ."
},
"keywords": [
"storybook",
Expand Down Expand Up @@ -82,4 +75,4 @@
"tsup": "^8.0.1",
"typescript": "^5.3.3"
}
}
}
2 changes: 1 addition & 1 deletion packages/auto-story-generator/src/constants/error.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { ErrorType } from "~/src/types/error";
import { ErrorType } from "~/src/types/ErrorType";

export const errorDefinition = {
// Common
Expand Down
Loading
Loading