Scripts for building, testing, deploying the packages of this monorepo, or for general development. Most scripts are written in ESM, thanks to zx.
Create a new npm package in this monorepo using these templates and answering a few questions.
# run this from the monorepo root
./scripts/new-package.mjs
Each npm package is published to my private Artifact Registry automatically, when pull requests get merged into the main
branch, thanks to @qiwi/multi-semantic-release invoked in the release.yaml GitHub workflow.
⚠️ Warning:✖️ The
release.yaml
workflow does not publish any npm package to npmjs.
Once a package is published to my private Artifact Registry, I publish it to npmjs using this script. The script triggers a build on Cloud Build for each npm package to publish to npmjs:
# run this from the monorepo root
./scripts/publish/npmjs.mjs
ℹ️ Note:
❓ The script asks for confirmation right before publishing each package to npmjs.