Skip to content

Commit

Permalink
increment patch number instead of minor for dev builds
Browse files Browse the repository at this point in the history
  • Loading branch information
samualtnorman committed Apr 13, 2024
1 parent f92c628 commit a4e1255
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/version-dev.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { spawnSync } from "child_process"
import * as Semver from "semver"
import packageConfig from "../package.json" assert { type: "json" }

const incrementedVersion = Semver.inc(packageConfig.version || "0.0.0", "minor")
const incrementedVersion = Semver.inc(packageConfig.version || "0.0.0", "patch")
const hash = spawnSync("git", [ "rev-parse", "--short", "HEAD" ], { encoding: "utf8" }).stdout.trim()

spawnSync("pnpm", [ "version", `${incrementedVersion}-${hash}` ], { stdio: "inherit" })
Expand Down

0 comments on commit a4e1255

Please sign in to comment.