Skip to content

Commit

Permalink
Try fix changesets tag
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed May 7, 2024
1 parent e5d2ed7 commit 1d4dec0
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/great-keys-prove.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"react18-loaders": patch
---

debug creation of release and pushing back to the repo
2 changes: 2 additions & 0 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,14 @@ if (isNotPatch && BRANCH === DEFAULT_BRANCH) {
// Push changes back to the repo
exec(pushCmd);
} else {
console.log("push changes back to repo", pushCmd);
exec(pushCmd);
}

/** Create release */
exec(`cd lib && pnpm build && npm publish --provenance --access public --tag ${tag}`);

console.log("release");
/** Create GitHub release */
exec(
`gh release create ${NEW_VERSION} --generate-notes${isLatestRelease ? " --latest" : ""} -n "$(sed '1,/^## /d;/^## /,$d' CHANGELOG.md)" --title "Release ${NEW_VERSION}"`,
Expand Down

0 comments on commit 1d4dec0

Please sign in to comment.