fix broken changelogFilepath

This commit is contained in:
SrGooglo 2023-04-27 22:05:58 +00:00
parent 7728ed409a
commit c5509dabee

View File

@ -97,7 +97,7 @@ async function compressDistBundle() {
return outPath return outPath
} }
async function uploadAssets({ release, bundlePath, changelogPath }) { async function uploadAssets({ release, bundlePath, changelogFilepath }) {
// check if has `noPublish` argument, if true, skip uploading assets // check if has `noPublish` argument, if true, skip uploading assets
if (process.argv.includes("--noPublish")) { if (process.argv.includes("--noPublish")) {
console.log("🔥 Skipping upload assets due to `noPublish` argument") console.log("🔥 Skipping upload assets due to `noPublish` argument")
@ -121,7 +121,7 @@ async function uploadAssets({ release, bundlePath, changelogPath }) {
owner: repo.split("/")[0], owner: repo.split("/")[0],
repo: repo.split("/")[1], repo: repo.split("/")[1],
name: "changelog.md", name: "changelog.md",
data: fs.readFileSync(changelogPath) data: fs.readFileSync(changelogFilepath)
}) })
if (!appDistAsset) { if (!appDistAsset) {