Sandbox for testing integrations
Lightweight sandbox package to exercise the npm publish workflow without touching the main repo. Mirrors the real workflow (pnpm, build/test/lint, tag-driven publish) but defaults to a safe dry run and skips release creation (releases are managed manually).
- Minimal TypeScript package with build/lint/test.
- GitHub Actions workflow (
.github/workflows/publish-js.yml) that:- Runs on tags like
js@1.2.3or viaworkflow_dispatch. - Builds, tests, lints, then publishes (dry run by default).
- Runs on tags like
pnpm-based toolchain (packageManagerpinned to pnpm 9).
- From this folder, install deps:
pnpm install. - Run checks locally (should all pass):
pnpm lintpnpm testpnpm build
- Commit/push this folder to a new repo (or keep it here).
- Trigger the workflow:
- Push a tag like
js@0.0.2, or - Use the GitHub UI
Run workflowbutton and keepdry_run=true(default).
- Push a tag like
- The workflow uses npm OIDC publish with provenance; repo must be public and
package.json.repository.urlmust match the GitHub repo. - Defaults are conservative (dry run, no release creation). Flip
dry_runto false when ready to publish for real; releases are handled outside the workflow.