Skip to content

Commit 33e7555

Browse files
committed
Publish canonicals
1 parent 90cf4d1 commit 33e7555

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

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+
["esbuild-glsl", "esbuild-webgl"].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)