Skip to content

Commit d06c26e

Browse files
committed
fix: publish error
1 parent a27d566 commit d06c26e

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "pri",
3-
"version": "4.0.22",
3+
"version": "4.0.23",
44
"types": "src/node/index.ts",
55
"main": "built/node/index.js",
66
"scripts": {

src/built-in-plugins/command-publish/plugin/run-publish.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ async function publishByPackageName(
176176
targetPackageJson.version = (semver.inc as any)(
177177
targetPackageJson.version,
178178
'prerelease',
179-
currentBranchName.replace(/\//g, '').replace(/\./g, ''),
179+
currentBranchName.replace(/\//g, '').replace(/\./g, '').replace(/_/g, ''),
180180
);
181181

182182
await fs.outputFile(path.join(targetRoot, 'package.json'), `${JSON.stringify(targetPackageJson, null, 2)}\n`);

0 commit comments

Comments
 (0)