Skip to content

Commit

Permalink
Merge pull request #1751 from intuit/npm-commit-message-bug
Browse files Browse the repository at this point in the history
format commit message
  • Loading branch information
hipstersmoothie authored Jan 25, 2021
2 parents 662e677 + 31a4ce4 commit f96c273
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 f96c273

Please sign in to comment.