Skip to content

Commit e2fde05

Browse files
committed
change log
1 parent f230c49 commit e2fde05

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

after-release.ts

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -96,17 +96,15 @@ export async function afterRelease() {
9696
const localZipPath = path.join(publishPath, file);
9797
// Check if the local file exists
9898
await fs.access(localZipPath);
99-
100-
const escapedChangelog = changelog.replace(/"/g, '\\"') .replace(/\n/g, '\\n');
101-
99+
102100
// Build the curl command - use local file path, not URL
103101
const curlCommand = [
104102
'curl -X POST "https://cloud.tangible.one/api/bitbucket/downloads"',
105103
`--form files=@"${localZipPath}"`,
106104
`--form "product_id=${productId}"`,
107105
`--form "plugin_id=${pluginId}"`,
108106
`--form "version=${isTag ? gitRefName : 'unknown'}"`,
109-
`--form "changelog=${escapedChangelog}"`,
107+
`--form "changelog=${changelog.replace(/"/g, '\\"')}"`,
110108
`--form "slug=${repoName}"`
111109
].join(' \\\n ');
112110

0 commit comments

Comments
 (0)