Skip to content

Commit

Permalink
🐛 release action
Browse files Browse the repository at this point in the history
  • Loading branch information
takuma-ru committed Jun 7, 2024
1 parent dc8de2f commit 7c1a319
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/release/src/action/packageVersionUp.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,14 +3,14 @@ import { join } from "node:path";
import consola from "consola";
import { type ReleaseType, inc } from "semver";
import { PACKAGE_JSON_PATH } from "../constants/config";
import { cmd } from "../utils/cmd";
import type { ReleaseSchemaType } from "../validation/validation";

export const packageVersionUp = ({ level, pre }: ReleaseSchemaType) => {
const packageJsonPath = join(__dirname, PACKAGE_JSON_PATH);
let packageJson = JSON.parse(readFileSync(packageJsonPath, "utf8"));

// const currentVersion = cmd(`npm show ${packageJson.name} version`).trim();
const currentVersion = "1.0.0-beta.1";
const currentVersion = cmd(`npm show ${packageJson.name} version`).trim();

consola.info(`Current version: ${currentVersion}`);

Expand Down

0 comments on commit 7c1a319

Please sign in to comment.