Skip to content

Latest commit

 

History

History
35 lines (24 loc) · 1.49 KB

README.md

File metadata and controls

35 lines (24 loc) · 1.49 KB

scripts

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 package in this monorepo

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

publish a package to npmjs

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.