name: npm smoke test # What an npm user gets: pack every publishable package, then in an empty directory # `npm create cloudhal` → npm install → snapshot/build → cloudhal dev → deploy --dry-run. on: workflow_dispatch: schedule: - cron: "17 4 * * 1" pull_request: paths: - "scripts/build-packages.ts" - "scripts/verify-exports.ts" - "scripts/smoke-pack.ts" - "packages/*/package.json" - "packages/cli/src/assets.ts" - "packages/cli/src/commands/init.ts" - "packages/create-cloudhal/**" - "starters/**" # Packs, installs and builds locally; the token only reads the repository. permissions: contents: read jobs: smoke: runs-on: ubuntu-latest timeout-minutes: 30 steps: - uses: actions/checkout@v7 - uses: pnpm/action-setup@v6 - uses: actions/setup-node@v7 with: node-version: 24 cache: pnpm - run: pnpm install --frozen-lockfile - run: pnpm smoke:pack