Skip to content

Commit f4c1628

Browse files
committed
ci: better publish gh releases (try)
1 parent 117598c commit f4c1628

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

.changeset/famous-words-relax.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"mobx-tanstack-query": patch
3+
---
4+
5+
ci: fix publish gh release

post-build.mjs

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
import { postBuildScript, publishScript, getInfoFromChangelog } from 'js2me-exports-post-build-script';
2+
import path from 'path';
23

34
postBuildScript({
45
buildDir: 'dist',
@@ -32,7 +33,7 @@ postBuildScript({
3233

3334
if (process.env.CI) {
3435
if (publishOutput.publishedGitTag) {
35-
const { whatChangesText } = getInfoFromChangelog(nextVersion, `${targetPackageJson.locationDir}/CHANGELOG.md`);
36+
const { whatChangesText } = getInfoFromChangelog(nextVersion, path.resolve(targetPackageJson.locationDir, '../CHANGELOG.md'));
3637
process.env.PUBLISHED_VERSION_RELEASE_NOTES = whatChangesText;
3738
}
3839
}

0 commit comments

Comments
 (0)