| name | dev-workflow |
|---|---|
| description | Branches, prepack, CI, PR and release workflow for contentstack-cli-tsgen. |
- Running the canonical build before pack or publish
- Understanding which branches run CI and how releases work
- Node.js workflow (
.github/workflows/node.js.yml) runs on push and pull_request formaster,development, andstaging. - Release (
.github/workflows/release.yml) runs on push tomaster(Node 22.x), publishes npm artifact fromlib, creates GitHub release.
Other Contentstack repos may use main instead of master; align with team branch protection when contributing.
npm run prepack: removeslib/, runstsc -b,oclif manifest,oclif readme. This is the canonical compile before pack/publish.- CI runs
prepackafter globalcsdxsetup andplugins:linkwhere applicable.
npm test: Jest with--testPathPattern=tests.posttest(afternpm test): ESLint with.eslintrc.jsand--fix.
- Run
npm run prepackandnpm test(which runsposttest) when changing source or tests.
- Version in
package.jsondrives publishing; release workflow builds withprepackfrommaster.