dev-workflow
Installation
SKILL.md
Development workflow – contentstack-cli-tsgen
When to use
- Running the canonical build before pack or publish
- Understanding which branches run CI and how releases work
Branches and CI
- 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.
Build
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.