Skip to content

Commit f688f68

Browse files
committed
touchup publish scripts
1 parent 4183d04 commit f688f68

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

scripts/manual-publish.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,3 +75,6 @@ execSync(`cd lib && pnpm build && npm publish --provenance --access public --tag
7575
execSync(
7676
`gh release create ${NEW_VERSION} --generate-notes${isLatestRelease ? " --latest" : ""} -n "$(sed '1,/^## /d;/^## /,$d' CHANGELOG.md)" --title "Release v${NEW_VERSION}"`,
7777
);
78+
79+
// Publish canonical packages
80+
execSync("node scripts/publish-canonical.js");

scripts/publish-canonical.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
const { execSync } = require("child_process");
2+
3+
// Publish canonical packages
4+
["react-trails"].forEach(pkg => {
5+
execSync(`sed -i -e "s/name.*/name\\": \\"${pkg}\\",/" lib/package.json`);
6+
execSync("cd lib && npm publish --provenance --access public");
7+
});

scripts/publish.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,3 +46,6 @@ execSync("cd lib && pnpm build && npm publish --provenance --access public");
4646
execSync(
4747
`gh release create ${VERSION} --generate-notes --latest -n "$(sed '1,/^## /d;/^## /,$d' CHANGELOG.md)" --title "Release v${VERSION}"`,
4848
);
49+
50+
// Publish canonical packages
51+
execSync("node scripts/publish-canonical.js");

0 commit comments

Comments
 (0)