Skip to content

Commit

Permalink
chore: escape back-tick during git tag when publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
Jolg42 committed Jun 1, 2021
1 parent de64c71 commit caca0e7
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/package.json
@@ -1,6 +1,6 @@
{
"name": "prisma2-dev-environment",
"version": "1.0.12",
"version": "1.0.13",
"main": "index.js",
"private": true,
"license": "MIT",
Expand Down
4 changes: 3 additions & 1 deletion src/scripts/ci/publish.ts
Expand Up @@ -809,7 +809,9 @@ async function tagEnginesRepo(
'prisma-engines',
`git log ${previousTag}..${engineVersion} --pretty=format:' * %h - %s - by %an' --`,
)
const changelogSanitized = changelog.replace(/"/gm, '\\"')
const changelogSanitized = changelog
.replace(/"/gm, '\\"')
.replace(/`/gm, '\\`')

const remotes = dryRun
? []
Expand Down

0 comments on commit caca0e7

Please sign in to comment.