Skip to content

Commit

Permalink
format commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
hipstersmoothie committed Jan 25, 2021
1 parent 7158ff2 commit 31a4ce4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions plugins/npm/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ import setTokenOnCI, { getRegistry, DEFAULT_REGISTRY } from "./set-npm-token";
import { writeFile, isMonorepo, readFile, getLernaJson } from "./utils";

const { isCi } = envCi();
const VERSION_COMMIT_MESSAGE = '"Bump version to: %s [skip ci]"';
const VERSION_COMMIT_MESSAGE = "Bump version to: %s [skip ci]";

/** Get the last published version for a npm package */
async function getPublishedVersion(name: string) {
Expand Down Expand Up @@ -947,7 +947,7 @@ export default class NPMPlugin implements IPlugin {
"-m",
isIndependent
? '"Bump independent versions [skip ci]"'
: VERSION_COMMIT_MESSAGE,
: JSON.stringify(VERSION_COMMIT_MESSAGE),
this.exact && "--exact",
...verboseArgs,
]);
Expand All @@ -969,7 +969,7 @@ export default class NPMPlugin implements IPlugin {
latestBump,
"--no-commit-hooks",
"-m",
VERSION_COMMIT_MESSAGE,
JSON.stringify(VERSION_COMMIT_MESSAGE),
...verboseArgs,
]);
auto.logger.verbose.info("Successfully versioned repo");
Expand Down

0 comments on commit 31a4ce4

Please sign in to comment.