Skip to content

Commit

Permalink
Publish canonicals
Browse files Browse the repository at this point in the history
  • Loading branch information
mayank1513 committed Jun 30, 2024
1 parent 90cf4d1 commit 33e7555
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
7 changes: 7 additions & 0 deletions scripts/publish-canonical.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
const { execSync } = require("child_process");

// Publish canonical packages
["esbuild-glsl", "esbuild-webgl"].forEach(pkg => {
execSync(`sed -i -e "s/name.*/name\\": \\"${pkg}\\",/" lib/package.json`);
execSync("cd lib && npm publish --provenance --access public");
});
3 changes: 3 additions & 0 deletions scripts/publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,3 +46,6 @@ execSync("cd lib && pnpm build && npm publish --provenance --access public");
execSync(
`gh release create ${VERSION} --generate-notes --latest -n "$(sed '1,/^## /d;/^## /,$d' CHANGELOG.md)" --title "Release v${VERSION}"`,
);

// Publish canonical packages
execSync("node scripts/publish-canonical.js");

0 comments on commit 33e7555

Please sign in to comment.