Skip to content

Latest commit

 

History

History
101 lines (79 loc) · 3.62 KB

CONTRIBUTING.md

File metadata and controls

101 lines (79 loc) · 3.62 KB

Contributing

Thank you for helping improve Setup CommerceKit CLI.

Prerequisites

  • Node.js 26.13.1, as pinned in .node-version
  • Corepack 0.36.0 (installed explicitly; Node 26 does not bundle it)
  • Git

The repository pins pnpm in package.json; do not install or publish this package through npm. Development installation also reads the existing shared notification contract from GitHub Packages. Configure package-read authentication in user-level npm configuration; the repository scope configuration contains no credentials. Trusted CI installation grants packages: read only to its quality job. Fork workflows may lack package access; do not use privileged untrusted PR execution to bypass that restriction.

Normal reporting development uses the exact published dependency in package.json; no source checkout, candidate preparation or file:tarball dependency is needed. The compatibility and validation record owns released-versus-main reporting status and historical candidate evidence.

npm install --global corepack@0.36.0
corepack enable
pnpm install --frozen-lockfile

The development/build host is Node 26; GitHub still executes action.yml with runs.using: node24. Keep runtime APIs compatible with Node 24. The six native Action jobs and the focused bundled integration retain execution coverage.

Development workflow

Create a focused branch, keep changes scoped, and include tests with behavior changes. Use synthetic fixtures. Never add credentials, customer data, private project files, private repository material, or real SAP configuration.

Useful commands:

pnpm format:check
pnpm lint
pnpm typecheck
pnpm test
pnpm test:coverage
pnpm test:scripts
pnpm bundle
pnpm bundle:check
pnpm audit --prod --audit-level=high
pnpm quality

The public release integration downloads CommerceKit CLI 0.1.0-preview.2 into isolated temporary runner and tool-cache directories:

pnpm bundle
pnpm test:integration

It verifies release metadata, the selected archive, executable version, Action outputs, validated notification contexts, success/failure summaries and a second-invocation cache hit. It does not install into a system directory or modify a shell profile. Latest-stable discovery is covered with synthetic unit fixtures because the current public CLI releases are previews.

CI runs the full bundled reporting integration once in its Linux quality job. All six native jobs retain their install/cache checks and verify the real event outputs using the same success assertions. This avoids six additional complete integration installations.

The ESLint and typescript-eslint development parents use upstream patched minimatch releases. test:scripts verifies all three installed paths stay at 11.0.1 or newer. This targeted regression complements the existing production audit; it is not a claim that every development advisory is absent. Review development audit results separately without lowering the production gate or adding broad dependency overrides.

Committed bundle

GitHub executes dist/index.js directly. Consumers do not run pnpm install, so every source change affecting runtime behavior must include the regenerated bundle:

pnpm bundle
git diff -- dist

pnpm bundle:check rebuilds the bundle and fails when committed dist differs. Review generated changes and bundled license notices before committing.

Pull requests

Before pushing, run pnpm quality and the real public release integration. Explain the behavior, security impact, tests, native runner coverage, and any release implications. Do not create or move Action tags from an unreviewed branch.