@mannyc1/ts-release 0.0.7 → 0.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/ARCHITECTURE.md +184 -92
- package/CHANGELOG.md +197 -0
- package/LICENSE +21 -0
- package/README.md +404 -327
- package/SPEC.md +257 -310
- package/apps/release-ts/README.md +39 -0
- package/apps/release-ts/src/cli/command.ts +164 -0
- package/apps/release-ts/src/cli/commands.ts +351 -0
- package/apps/release-ts/src/cli/main.ts +43 -0
- package/apps/release-ts/src/cli/node-main.ts +49 -0
- package/apps/ts-release-agents/LICENSE +21 -0
- package/apps/ts-release-agents/README.md +21 -0
- package/apps/ts-release-agents/evals/cases.json +11 -0
- package/apps/ts-release-agents/manifests/claude.json +5 -0
- package/apps/ts-release-agents/manifests/codex.json +5 -0
- package/apps/ts-release-agents/package.json +11 -0
- package/apps/ts-release-agents/skills/release/SKILL.md +48 -0
- package/apps/ts-release-agents/skills/release/references/configuration.md +18 -0
- package/apps/ts-release-agents/skills/release/references/recovery.md +10 -0
- package/apps/ts-release-agents/skills/release/references/staged-workflow.md +12 -0
- package/apps/ts-release-agents/skills/release/references/target-selection.md +13 -0
- package/apps/ts-release-agents/skills/release/references/verification.md +14 -0
- package/apps/ts-release-agents/src/build.ts +105 -0
- package/apps/ts-release-agents/src/check.ts +122 -0
- package/apps/ts-release-agents/src/install.ts +121 -0
- package/apps/ts-release-agents/test/contract.test.ts +56 -0
- package/apps/ts-release-agents/tsconfig.json +5 -0
- package/dist/api/api.d.ts +15 -0
- package/dist/api/api.d.ts.map +1 -0
- package/dist/api/api.js +244 -0
- package/dist/api/api.js.map +1 -0
- package/dist/api/errors.d.ts +39 -0
- package/dist/api/errors.d.ts.map +1 -0
- package/dist/api/errors.js +32 -0
- package/dist/api/errors.js.map +1 -0
- package/dist/api/input.d.ts +10 -0
- package/dist/api/input.d.ts.map +1 -0
- package/dist/api/input.js +73 -0
- package/dist/api/input.js.map +1 -0
- package/dist/api/runtime.d.ts +18 -0
- package/dist/api/runtime.d.ts.map +1 -0
- package/dist/api/runtime.js +7 -0
- package/dist/api/runtime.js.map +1 -0
- package/dist/api/types.d.ts +76 -0
- package/dist/api/types.d.ts.map +1 -0
- package/dist/api/types.js +17 -0
- package/dist/api/types.js.map +1 -0
- package/dist/bin/ts-release.js +39346 -0
- package/dist/capabilities/bun-targets.d.ts +3 -0
- package/dist/capabilities/bun-targets.d.ts.map +1 -0
- package/dist/capabilities/bun-targets.js +3 -0
- package/dist/capabilities/bun-targets.js.map +1 -0
- package/dist/capabilities/field-ownership.d.ts +17 -0
- package/dist/capabilities/field-ownership.d.ts.map +1 -0
- package/dist/capabilities/field-ownership.js +40 -0
- package/dist/capabilities/field-ownership.js.map +1 -0
- package/dist/capabilities/module.d.ts +91 -0
- package/dist/capabilities/module.d.ts.map +1 -0
- package/dist/capabilities/module.js +2 -0
- package/dist/capabilities/module.js.map +1 -0
- package/dist/capabilities/registry.d.ts +829 -0
- package/dist/capabilities/registry.d.ts.map +1 -0
- package/dist/capabilities/registry.js +291 -0
- package/dist/capabilities/registry.js.map +1 -0
- package/dist/config/config.d.ts +6 -0
- package/dist/config/config.d.ts.map +1 -0
- package/dist/config/config.js +42 -0
- package/dist/config/config.js.map +1 -0
- package/dist/correction/coordinator.d.ts +248 -0
- package/dist/correction/coordinator.d.ts.map +1 -0
- package/dist/correction/coordinator.js +274 -0
- package/dist/correction/coordinator.js.map +1 -0
- package/dist/correction/index.d.ts +3 -0
- package/dist/correction/index.d.ts.map +1 -0
- package/dist/correction/index.js +3 -0
- package/dist/correction/index.js.map +1 -0
- package/dist/correction/intent.d.ts +111 -0
- package/dist/correction/intent.d.ts.map +1 -0
- package/dist/correction/intent.js +146 -0
- package/dist/correction/intent.js.map +1 -0
- package/dist/drivers/archive.d.ts +9 -0
- package/dist/drivers/archive.d.ts.map +1 -0
- package/dist/drivers/archive.js +105 -0
- package/dist/drivers/archive.js.map +1 -0
- package/dist/drivers/contain.d.ts +6 -0
- package/dist/drivers/contain.d.ts.map +1 -0
- package/dist/drivers/contain.js +17 -0
- package/dist/drivers/contain.js.map +1 -0
- package/dist/drivers/environment.d.ts +4 -0
- package/dist/drivers/environment.d.ts.map +1 -0
- package/dist/drivers/environment.js +18 -0
- package/dist/drivers/environment.js.map +1 -0
- package/dist/drivers/errors.d.ts +9 -0
- package/dist/drivers/errors.d.ts.map +1 -0
- package/dist/drivers/errors.js +6 -0
- package/dist/drivers/errors.js.map +1 -0
- package/dist/drivers/glob.d.ts +2 -0
- package/dist/drivers/glob.d.ts.map +1 -0
- package/dist/drivers/glob.js +162 -0
- package/dist/drivers/glob.js.map +1 -0
- package/dist/drivers/process.d.ts +48 -0
- package/dist/drivers/process.d.ts.map +1 -0
- package/dist/drivers/process.js +257 -0
- package/dist/drivers/process.js.map +1 -0
- package/dist/drivers/python-wheel.d.ts +21 -0
- package/dist/drivers/python-wheel.d.ts.map +1 -0
- package/dist/drivers/python-wheel.js +109 -0
- package/dist/drivers/python-wheel.js.map +1 -0
- package/dist/drivers/redact.d.ts +4 -0
- package/dist/drivers/redact.d.ts.map +1 -0
- package/dist/drivers/redact.js +24 -0
- package/dist/drivers/redact.js.map +1 -0
- package/dist/drivers/seccomp-helper-source.d.ts +7 -0
- package/dist/drivers/seccomp-helper-source.d.ts.map +1 -0
- package/dist/drivers/seccomp-helper-source.js +121 -0
- package/dist/drivers/seccomp-helper-source.js.map +1 -0
- package/dist/drivers/utils.d.ts +4 -0
- package/dist/drivers/utils.d.ts.map +1 -0
- package/dist/drivers/utils.js +5 -0
- package/dist/drivers/utils.js.map +1 -0
- package/dist/drivers/workspace.d.ts +9 -0
- package/dist/drivers/workspace.d.ts.map +1 -0
- package/dist/drivers/workspace.js +53 -0
- package/dist/drivers/workspace.js.map +1 -0
- package/dist/extensions/provider-adapter.d.ts +48 -0
- package/dist/extensions/provider-adapter.d.ts.map +1 -0
- package/dist/extensions/provider-adapter.js +64 -0
- package/dist/extensions/provider-adapter.js.map +1 -0
- package/dist/host.d.ts +33 -0
- package/dist/host.d.ts.map +1 -0
- package/dist/host.js +20 -0
- package/dist/host.js.map +1 -0
- package/dist/index.d.ts +19 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +12 -1
- package/dist/index.js.map +1 -1
- package/dist/model/artifact-collection.d.ts +84 -0
- package/dist/model/artifact-collection.d.ts.map +1 -0
- package/dist/model/artifact-collection.js +185 -0
- package/dist/model/artifact-collection.js.map +1 -0
- package/dist/model/authority.d.ts +89 -0
- package/dist/model/authority.d.ts.map +1 -0
- package/dist/model/authority.js +80 -0
- package/dist/model/authority.js.map +1 -0
- package/dist/model/bun-targets.d.ts +34 -0
- package/dist/model/bun-targets.d.ts.map +1 -0
- package/dist/model/bun-targets.js +17 -0
- package/dist/model/bun-targets.js.map +1 -0
- package/dist/model/canonical.d.ts +8 -0
- package/dist/model/canonical.d.ts.map +1 -0
- package/dist/model/canonical.js +205 -0
- package/dist/model/canonical.js.map +1 -0
- package/dist/model/catalog.d.ts +76 -0
- package/dist/model/catalog.d.ts.map +1 -0
- package/dist/model/catalog.js +174 -0
- package/dist/model/catalog.js.map +1 -0
- package/dist/model/digest.d.ts +53 -0
- package/dist/model/digest.d.ts.map +1 -0
- package/dist/model/digest.js +127 -0
- package/dist/model/digest.js.map +1 -0
- package/dist/model/errors.d.ts +14 -0
- package/dist/model/errors.d.ts.map +1 -0
- package/dist/model/errors.js +8 -0
- package/dist/model/errors.js.map +1 -0
- package/dist/model/primitives.d.ts +19 -0
- package/dist/model/primitives.d.ts.map +1 -0
- package/dist/model/primitives.js +18 -0
- package/dist/model/primitives.js.map +1 -0
- package/dist/model/pypi.d.ts +12 -0
- package/dist/model/pypi.d.ts.map +1 -0
- package/dist/model/pypi.js +20 -0
- package/dist/model/pypi.js.map +1 -0
- package/dist/model/python-distribution.d.ts +33 -0
- package/dist/model/python-distribution.d.ts.map +1 -0
- package/dist/model/python-distribution.js +367 -0
- package/dist/model/python-distribution.js.map +1 -0
- package/dist/model/secret-patterns.d.ts +2 -0
- package/dist/model/secret-patterns.d.ts.map +1 -0
- package/dist/model/secret-patterns.js +12 -0
- package/dist/model/secret-patterns.js.map +1 -0
- package/dist/operation-journal/authority.d.ts +3 -0
- package/dist/operation-journal/authority.d.ts.map +1 -0
- package/dist/operation-journal/authority.js +147 -0
- package/dist/operation-journal/authority.js.map +1 -0
- package/dist/operation-journal/aws/deadline.d.ts +12 -0
- package/dist/operation-journal/aws/deadline.d.ts.map +1 -0
- package/dist/operation-journal/aws/deadline.js +38 -0
- package/dist/operation-journal/aws/deadline.js.map +1 -0
- package/dist/operation-journal/aws/oidc.d.ts +27 -0
- package/dist/operation-journal/aws/oidc.d.ts.map +1 -0
- package/dist/operation-journal/aws/oidc.js +361 -0
- package/dist/operation-journal/aws/oidc.js.map +1 -0
- package/dist/operation-journal/aws/policy.d.ts +42 -0
- package/dist/operation-journal/aws/policy.d.ts.map +1 -0
- package/dist/operation-journal/aws/policy.js +404 -0
- package/dist/operation-journal/aws/policy.js.map +1 -0
- package/dist/operation-journal/aws/s3-boundary.d.ts +17 -0
- package/dist/operation-journal/aws/s3-boundary.d.ts.map +1 -0
- package/dist/operation-journal/aws/s3-boundary.js +417 -0
- package/dist/operation-journal/aws/s3-boundary.js.map +1 -0
- package/dist/operation-journal/aws.d.ts +11 -0
- package/dist/operation-journal/aws.d.ts.map +1 -0
- package/dist/operation-journal/aws.js +50 -0
- package/dist/operation-journal/aws.js.map +1 -0
- package/dist/operation-journal/canonical.d.ts +52 -0
- package/dist/operation-journal/canonical.d.ts.map +1 -0
- package/dist/operation-journal/canonical.js +282 -0
- package/dist/operation-journal/canonical.js.map +1 -0
- package/dist/operation-journal/model.d.ts +251 -0
- package/dist/operation-journal/model.d.ts.map +1 -0
- package/dist/operation-journal/model.js +56 -0
- package/dist/operation-journal/model.js.map +1 -0
- package/dist/operation-journal/reducer.d.ts +28 -0
- package/dist/operation-journal/reducer.d.ts.map +1 -0
- package/dist/operation-journal/reducer.js +73 -0
- package/dist/operation-journal/reducer.js.map +1 -0
- package/dist/operation-journal/s3.d.ts +7 -0
- package/dist/operation-journal/s3.d.ts.map +1 -0
- package/dist/operation-journal/s3.js +667 -0
- package/dist/operation-journal/s3.js.map +1 -0
- package/dist/operation-journal.d.ts +14 -0
- package/dist/operation-journal.d.ts.map +1 -0
- package/dist/operation-journal.js +12 -0
- package/dist/operation-journal.js.map +1 -0
- package/dist/platform/bun.d.ts +7 -0
- package/dist/platform/bun.d.ts.map +1 -0
- package/dist/platform/bun.js +15 -0
- package/dist/platform/bun.js.map +1 -0
- package/dist/platform/credentials.d.ts +32 -0
- package/dist/platform/credentials.d.ts.map +1 -0
- package/dist/platform/credentials.js +834 -0
- package/dist/platform/credentials.js.map +1 -0
- package/dist/platform/host-support.d.ts +2 -0
- package/dist/platform/host-support.d.ts.map +1 -0
- package/dist/platform/host-support.js +4 -0
- package/dist/platform/host-support.js.map +1 -0
- package/dist/platform/node.d.ts +7 -0
- package/dist/platform/node.d.ts.map +1 -0
- package/dist/platform/node.js +15 -0
- package/dist/platform/node.js.map +1 -0
- package/dist/platform/release-runtime.d.ts +11 -0
- package/dist/platform/release-runtime.d.ts.map +1 -0
- package/dist/platform/release-runtime.js +34 -0
- package/dist/platform/release-runtime.js.map +1 -0
- package/dist/platform/services.d.ts +15 -0
- package/dist/platform/services.d.ts.map +1 -0
- package/dist/platform/services.js +30 -0
- package/dist/platform/services.js.map +1 -0
- package/dist/platform/source-observer.d.ts +5 -0
- package/dist/platform/source-observer.d.ts.map +1 -0
- package/dist/platform/source-observer.js +159 -0
- package/dist/platform/source-observer.js.map +1 -0
- package/dist/provider-sdk.d.ts +14 -0
- package/dist/provider-sdk.d.ts.map +1 -0
- package/dist/provider-sdk.js +10 -0
- package/dist/provider-sdk.js.map +1 -0
- package/dist/publication/adapter.d.ts +212 -0
- package/dist/publication/adapter.d.ts.map +1 -0
- package/dist/publication/adapter.js +83 -0
- package/dist/publication/adapter.js.map +1 -0
- package/dist/publication/authority.d.ts +137 -0
- package/dist/publication/authority.d.ts.map +1 -0
- package/dist/publication/authority.js +233 -0
- package/dist/publication/authority.js.map +1 -0
- package/dist/publication/catalog-git.d.ts +37 -0
- package/dist/publication/catalog-git.d.ts.map +1 -0
- package/dist/publication/catalog-git.js +451 -0
- package/dist/publication/catalog-git.js.map +1 -0
- package/dist/publication/claim.d.ts +39 -0
- package/dist/publication/claim.d.ts.map +1 -0
- package/dist/publication/claim.js +31 -0
- package/dist/publication/claim.js.map +1 -0
- package/dist/publication/coordinator.d.ts +246 -0
- package/dist/publication/coordinator.d.ts.map +1 -0
- package/dist/publication/coordinator.js +370 -0
- package/dist/publication/coordinator.js.map +1 -0
- package/dist/publication/github.d.ts +36 -0
- package/dist/publication/github.d.ts.map +1 -0
- package/dist/publication/github.js +695 -0
- package/dist/publication/github.js.map +1 -0
- package/dist/publication/http.d.ts +69 -0
- package/dist/publication/http.d.ts.map +1 -0
- package/dist/publication/http.js +29 -0
- package/dist/publication/http.js.map +1 -0
- package/dist/publication/index.d.ts +5 -0
- package/dist/publication/index.d.ts.map +1 -0
- package/dist/publication/index.js +5 -0
- package/dist/publication/index.js.map +1 -0
- package/dist/publication/npm.d.ts +40 -0
- package/dist/publication/npm.d.ts.map +1 -0
- package/dist/publication/npm.js +359 -0
- package/dist/publication/npm.js.map +1 -0
- package/dist/publication/profiles.d.ts +136 -0
- package/dist/publication/profiles.d.ts.map +1 -0
- package/dist/publication/profiles.js +90 -0
- package/dist/publication/profiles.js.map +1 -0
- package/dist/publication/publisher.d.ts +82 -0
- package/dist/publication/publisher.d.ts.map +1 -0
- package/dist/publication/publisher.js +53 -0
- package/dist/publication/publisher.js.map +1 -0
- package/dist/publication/pypi.d.ts +45 -0
- package/dist/publication/pypi.d.ts.map +1 -0
- package/dist/publication/pypi.js +369 -0
- package/dist/publication/pypi.js.map +1 -0
- package/dist/publication/recovery.d.ts +663 -0
- package/dist/publication/recovery.d.ts.map +1 -0
- package/dist/publication/recovery.js +252 -0
- package/dist/publication/recovery.js.map +1 -0
- package/dist/publication/report.d.ts +1061 -0
- package/dist/publication/report.d.ts.map +1 -0
- package/dist/publication/report.js +441 -0
- package/dist/publication/report.js.map +1 -0
- package/dist/recipes/config.d.ts +296 -0
- package/dist/recipes/config.d.ts.map +1 -0
- package/dist/recipes/config.js +325 -0
- package/dist/recipes/config.js.map +1 -0
- package/dist/release/capabilities.d.ts +12 -0
- package/dist/release/capabilities.d.ts.map +1 -0
- package/dist/release/capabilities.js +395 -0
- package/dist/release/capabilities.js.map +1 -0
- package/dist/release/compiler.d.ts +5 -0
- package/dist/release/compiler.d.ts.map +1 -0
- package/dist/release/compiler.js +19 -0
- package/dist/release/compiler.js.map +1 -0
- package/dist/release/config.d.ts +5 -0
- package/dist/release/config.d.ts.map +1 -0
- package/dist/release/config.js +10 -0
- package/dist/release/config.js.map +1 -0
- package/dist/release/context.d.ts +96 -0
- package/dist/release/context.d.ts.map +1 -0
- package/dist/release/context.js +168 -0
- package/dist/release/context.js.map +1 -0
- package/dist/release/graph.d.ts +271 -0
- package/dist/release/graph.d.ts.map +1 -0
- package/dist/release/graph.js +766 -0
- package/dist/release/graph.js.map +1 -0
- package/dist/release/inspect.d.ts +88 -0
- package/dist/release/inspect.d.ts.map +1 -0
- package/dist/release/inspect.js +75 -0
- package/dist/release/inspect.js.map +1 -0
- package/dist/release/prepare.d.ts +24 -0
- package/dist/release/prepare.d.ts.map +1 -0
- package/dist/release/prepare.js +1115 -0
- package/dist/release/prepare.js.map +1 -0
- package/dist/release/prepared-ref.d.ts +60 -0
- package/dist/release/prepared-ref.d.ts.map +1 -0
- package/dist/release/prepared-ref.js +131 -0
- package/dist/release/prepared-ref.js.map +1 -0
- package/dist/release/prepared-store.d.ts +90 -0
- package/dist/release/prepared-store.d.ts.map +1 -0
- package/dist/release/prepared-store.js +339 -0
- package/dist/release/prepared-store.js.map +1 -0
- package/dist/release/prepared.d.ts +172 -0
- package/dist/release/prepared.d.ts.map +1 -0
- package/dist/release/prepared.js +268 -0
- package/dist/release/prepared.js.map +1 -0
- package/dist/release/staging.d.ts +31 -0
- package/dist/release/staging.d.ts.map +1 -0
- package/dist/release/staging.js +218 -0
- package/dist/release/staging.js.map +1 -0
- package/dist/resolve/authored.d.ts +53 -0
- package/dist/resolve/authored.d.ts.map +1 -0
- package/dist/resolve/authored.js +55 -0
- package/dist/resolve/authored.js.map +1 -0
- package/dist/resolve/encode.d.ts +3 -0
- package/dist/resolve/encode.d.ts.map +1 -0
- package/dist/resolve/encode.js +21 -0
- package/dist/resolve/encode.js.map +1 -0
- package/dist/resolve/errors.d.ts +7 -0
- package/dist/resolve/errors.d.ts.map +1 -0
- package/dist/resolve/errors.js +17 -0
- package/dist/resolve/errors.js.map +1 -0
- package/dist/resolve/facts.d.ts +12 -0
- package/dist/resolve/facts.d.ts.map +1 -0
- package/dist/resolve/facts.js +18 -0
- package/dist/resolve/facts.js.map +1 -0
- package/dist/resolve/resolve.d.ts +10 -0
- package/dist/resolve/resolve.d.ts.map +1 -0
- package/dist/resolve/resolve.js +242 -0
- package/dist/resolve/resolve.js.map +1 -0
- package/dist/store.d.ts +11 -0
- package/dist/store.d.ts.map +1 -0
- package/dist/store.js +9 -0
- package/dist/store.js.map +1 -0
- package/examples/README.md +20 -30
- package/examples/github-release/release.config.json +11 -18
- package/examples/homebrew-tap/README.md +11 -0
- package/examples/homebrew-tap/release.config.json +40 -28
- package/examples/multi-target/release.config.json +28 -53
- package/examples/npm-first-publish/release.config.json +23 -25
- package/examples/npm-only/release.config.json +22 -30
- package/examples/portable-cli/README.md +17 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-darwin-arm64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-darwin-x64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-linux-arm64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-linux-x64 +1 -0
- package/examples/portable-cli/artifacts/portable-example-0.1.0-windows-x64.exe +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-macosx_10_15_x86_64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-macosx_11_0_arm64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-manylinux2014_aarch64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-manylinux2014_x86_64.whl +1 -0
- package/examples/portable-cli/artifacts/portable_example-0.1.0-py3-none-win_amd64.whl +1 -0
- package/examples/portable-cli/package.json +9 -0
- package/examples/portable-cli/release.config.json +53 -0
- package/examples/portable-cli/src/cli.ts +3 -0
- package/examples/pypi-registry/README.md +8 -0
- package/examples/scoop-bucket/README.md +10 -0
- package/examples/scoop-bucket/release.config.json +40 -30
- package/package.json +73 -154
- package/src/api/api.ts +365 -0
- package/src/api/errors.ts +36 -0
- package/src/api/input.ts +92 -0
- package/src/api/runtime.ts +14 -0
- package/src/api/types.ts +103 -0
- package/src/capabilities/bun-targets.ts +2 -0
- package/src/capabilities/field-ownership.ts +60 -0
- package/src/capabilities/module.ts +158 -0
- package/src/capabilities/registry.ts +333 -0
- package/src/config/config.ts +48 -0
- package/src/correction/coordinator.ts +336 -0
- package/src/correction/index.ts +2 -0
- package/src/correction/intent.ts +172 -0
- package/src/drivers/archive.ts +111 -0
- package/src/drivers/contain.ts +20 -0
- package/src/drivers/environment.ts +28 -0
- package/src/drivers/errors.ts +6 -0
- package/src/drivers/glob.ts +137 -0
- package/src/drivers/process.ts +339 -0
- package/src/drivers/python-wheel.ts +145 -0
- package/src/drivers/redact.ts +31 -0
- package/src/drivers/seccomp-helper-source.ts +121 -0
- package/src/drivers/utils.ts +10 -0
- package/src/drivers/workspace.ts +46 -0
- package/src/extensions/provider-adapter.ts +99 -0
- package/src/host.ts +140 -0
- package/src/index.ts +64 -0
- package/src/model/artifact-collection.ts +237 -0
- package/src/model/authority.ts +116 -0
- package/src/model/bun-targets.ts +34 -0
- package/src/model/canonical.ts +205 -0
- package/src/model/catalog.ts +220 -0
- package/src/model/digest.ts +172 -0
- package/src/model/errors.ts +6 -0
- package/src/model/primitives.ts +37 -0
- package/src/model/pypi.ts +30 -0
- package/src/model/python-distribution.ts +360 -0
- package/src/model/secret-patterns.ts +11 -0
- package/src/operation-journal/authority.ts +162 -0
- package/src/operation-journal/aws/deadline.ts +41 -0
- package/src/operation-journal/aws/oidc.ts +439 -0
- package/src/operation-journal/aws/policy.ts +491 -0
- package/src/operation-journal/aws/s3-boundary.ts +562 -0
- package/src/operation-journal/aws.ts +60 -0
- package/src/operation-journal/canonical.ts +373 -0
- package/src/operation-journal/model.ts +301 -0
- package/src/operation-journal/reducer.ts +112 -0
- package/src/operation-journal/s3.ts +884 -0
- package/src/operation-journal.ts +51 -0
- package/src/platform/bun.ts +38 -0
- package/src/platform/credentials.ts +1151 -0
- package/src/platform/host-support.ts +4 -0
- package/src/platform/node.ts +38 -0
- package/src/platform/release-runtime.ts +47 -0
- package/src/platform/services.ts +57 -0
- package/src/platform/source-observer.ts +193 -0
- package/src/provider-sdk.ts +48 -0
- package/src/publication/adapter.ts +132 -0
- package/src/publication/authority.ts +397 -0
- package/src/publication/catalog-git.ts +603 -0
- package/src/publication/claim.ts +51 -0
- package/src/publication/coordinator.ts +578 -0
- package/src/publication/github.ts +1022 -0
- package/src/publication/http.ts +101 -0
- package/src/publication/index.ts +4 -0
- package/src/publication/npm.ts +525 -0
- package/src/publication/profiles.ts +94 -0
- package/src/publication/publisher.ts +130 -0
- package/src/publication/pypi.ts +463 -0
- package/src/publication/recovery.ts +349 -0
- package/src/publication/report.ts +628 -0
- package/src/recipes/config.ts +395 -0
- package/src/release/capabilities.ts +460 -0
- package/src/release/compiler.ts +28 -0
- package/src/release/config.ts +12 -0
- package/src/release/context.ts +223 -0
- package/src/release/graph.ts +866 -0
- package/src/release/inspect.ts +83 -0
- package/src/release/prepare.ts +1329 -0
- package/src/release/prepared-ref.ts +193 -0
- package/src/release/prepared-store.ts +378 -0
- package/src/release/prepared.ts +299 -0
- package/src/release/staging.ts +257 -0
- package/src/resolve/authored.ts +64 -0
- package/src/resolve/encode.ts +22 -0
- package/src/resolve/errors.ts +15 -0
- package/src/resolve/facts.ts +18 -0
- package/src/resolve/resolve.ts +328 -0
- package/src/store.ts +28 -0
- package/templates/README.md +55 -72
- package/templates/bun-cli-github/README.md +7 -9
- package/templates/bun-cli-github/release.config.json +35 -73
- package/templates/github-actions/release.yml +74 -0
- package/templates/github-actions/reviewed-release.yml +115 -0
- package/templates/multi-target-homebrew/README.md +10 -0
- package/templates/multi-target-homebrew/release.config.json +43 -60
- package/templates/multi-target-scoop/README.md +10 -0
- package/templates/multi-target-scoop/release.config.json +43 -62
- package/templates/npm-github/release.config.json +25 -38
- package/templates/npm-github/reviewed-release.config.json +37 -0
- package/templates/npm-only/README.md +10 -0
- package/templates/npm-only/release.config.json +15 -30
- package/templates/portable-cli/README.md +13 -0
- package/templates/portable-cli/release.config.json +53 -0
- package/dist/artifacts/adapter.d.ts +0 -39
- package/dist/artifacts/adapter.d.ts.map +0 -1
- package/dist/artifacts/adapter.js +0 -23
- package/dist/artifacts/adapter.js.map +0 -1
- package/dist/artifacts/registry.d.ts +0 -21
- package/dist/artifacts/registry.d.ts.map +0 -1
- package/dist/artifacts/registry.js +0 -21
- package/dist/artifacts/registry.js.map +0 -1
- package/dist/config/errors.d.ts +0 -24
- package/dist/config/errors.d.ts.map +0 -1
- package/dist/config/errors.js +0 -19
- package/dist/config/errors.js.map +0 -1
- package/dist/config/load.d.ts +0 -9
- package/dist/config/load.d.ts.map +0 -1
- package/dist/config/load.js +0 -29
- package/dist/config/load.js.map +0 -1
- package/dist/config/schema.d.ts +0 -12
- package/dist/config/schema.d.ts.map +0 -1
- package/dist/config/schema.js +0 -19
- package/dist/config/schema.js.map +0 -1
- package/dist/domain/artifact.d.ts +0 -118
- package/dist/domain/artifact.d.ts.map +0 -1
- package/dist/domain/artifact.js +0 -197
- package/dist/domain/artifact.js.map +0 -1
- package/dist/domain/evidence.d.ts +0 -59
- package/dist/domain/evidence.d.ts.map +0 -1
- package/dist/domain/evidence.js +0 -51
- package/dist/domain/evidence.js.map +0 -1
- package/dist/domain/operation.d.ts +0 -143
- package/dist/domain/operation.d.ts.map +0 -1
- package/dist/domain/operation.js +0 -198
- package/dist/domain/operation.js.map +0 -1
- package/dist/domain/release.d.ts +0 -93
- package/dist/domain/release.d.ts.map +0 -1
- package/dist/domain/release.js +0 -82
- package/dist/domain/release.js.map +0 -1
- package/dist/domain/remote-state.d.ts +0 -58
- package/dist/domain/remote-state.d.ts.map +0 -1
- package/dist/domain/remote-state.js +0 -55
- package/dist/domain/remote-state.js.map +0 -1
- package/dist/domain/target.d.ts +0 -148
- package/dist/domain/target.d.ts.map +0 -1
- package/dist/domain/target.js +0 -151
- package/dist/domain/target.js.map +0 -1
- package/dist/host/host.d.ts +0 -32
- package/dist/host/host.d.ts.map +0 -1
- package/dist/host/host.js +0 -24
- package/dist/host/host.js.map +0 -1
- package/dist/host/http-live.d.ts +0 -6
- package/dist/host/http-live.d.ts.map +0 -1
- package/dist/host/http-live.js +0 -86
- package/dist/host/http-live.js.map +0 -1
- package/dist/host/http.d.ts +0 -43
- package/dist/host/http.d.ts.map +0 -1
- package/dist/host/http.js +0 -59
- package/dist/host/http.js.map +0 -1
- package/dist/host/platform.d.ts +0 -10
- package/dist/host/platform.d.ts.map +0 -1
- package/dist/host/platform.js +0 -114
- package/dist/host/platform.js.map +0 -1
- package/dist/host/test.d.ts +0 -23
- package/dist/host/test.d.ts.map +0 -1
- package/dist/host/test.js +0 -222
- package/dist/host/test.js.map +0 -1
- package/dist/internal/workspace-path.d.ts +0 -15
- package/dist/internal/workspace-path.d.ts.map +0 -1
- package/dist/internal/workspace-path.js +0 -36
- package/dist/internal/workspace-path.js.map +0 -1
- package/dist/planner/artifact-inventory.d.ts +0 -9
- package/dist/planner/artifact-inventory.d.ts.map +0 -1
- package/dist/planner/artifact-inventory.js +0 -86
- package/dist/planner/artifact-inventory.js.map +0 -1
- package/dist/planner/create-release-plan.d.ts +0 -5
- package/dist/planner/create-release-plan.d.ts.map +0 -1
- package/dist/planner/create-release-plan.js +0 -25
- package/dist/planner/create-release-plan.js.map +0 -1
- package/dist/planner/errors.d.ts +0 -67
- package/dist/planner/errors.d.ts.map +0 -1
- package/dist/planner/errors.js +0 -58
- package/dist/planner/errors.js.map +0 -1
- package/dist/planner/evidence-recorder.d.ts +0 -28
- package/dist/planner/evidence-recorder.d.ts.map +0 -1
- package/dist/planner/evidence-recorder.js +0 -362
- package/dist/planner/evidence-recorder.js.map +0 -1
- package/dist/planner/executor.d.ts +0 -58
- package/dist/planner/executor.d.ts.map +0 -1
- package/dist/planner/executor.js +0 -147
- package/dist/planner/executor.js.map +0 -1
- package/dist/planner/normalize-release.d.ts +0 -19
- package/dist/planner/normalize-release.d.ts.map +0 -1
- package/dist/planner/normalize-release.js +0 -342
- package/dist/planner/normalize-release.js.map +0 -1
- package/dist/planner/reconcile.d.ts +0 -17
- package/dist/planner/reconcile.d.ts.map +0 -1
- package/dist/planner/reconcile.js +0 -259
- package/dist/planner/reconcile.js.map +0 -1
- package/dist/planner/render-plan.d.ts +0 -15
- package/dist/planner/render-plan.d.ts.map +0 -1
- package/dist/planner/render-plan.js +0 -231
- package/dist/planner/render-plan.js.map +0 -1
- package/dist/targets/adapter-helpers.d.ts +0 -79
- package/dist/targets/adapter-helpers.d.ts.map +0 -1
- package/dist/targets/adapter-helpers.js +0 -194
- package/dist/targets/adapter-helpers.js.map +0 -1
- package/dist/targets/adapter.d.ts +0 -17
- package/dist/targets/adapter.d.ts.map +0 -1
- package/dist/targets/adapter.js +0 -2
- package/dist/targets/adapter.js.map +0 -1
- package/dist/targets/github-release.d.ts +0 -25
- package/dist/targets/github-release.d.ts.map +0 -1
- package/dist/targets/github-release.js +0 -82
- package/dist/targets/github-release.js.map +0 -1
- package/dist/targets/github.d.ts +0 -11
- package/dist/targets/github.d.ts.map +0 -1
- package/dist/targets/github.js +0 -117
- package/dist/targets/github.js.map +0 -1
- package/dist/targets/homebrew.d.ts +0 -11
- package/dist/targets/homebrew.d.ts.map +0 -1
- package/dist/targets/homebrew.js +0 -210
- package/dist/targets/homebrew.js.map +0 -1
- package/dist/targets/live.d.ts +0 -5
- package/dist/targets/live.d.ts.map +0 -1
- package/dist/targets/live.js +0 -50
- package/dist/targets/live.js.map +0 -1
- package/dist/targets/npm.d.ts +0 -10
- package/dist/targets/npm.d.ts.map +0 -1
- package/dist/targets/npm.js +0 -112
- package/dist/targets/npm.js.map +0 -1
- package/dist/targets/pypi.d.ts +0 -11
- package/dist/targets/pypi.d.ts.map +0 -1
- package/dist/targets/pypi.js +0 -141
- package/dist/targets/pypi.js.map +0 -1
- package/dist/targets/registry.d.ts +0 -25
- package/dist/targets/registry.d.ts.map +0 -1
- package/dist/targets/registry.js +0 -34
- package/dist/targets/registry.js.map +0 -1
- package/dist/targets/scoop.d.ts +0 -11
- package/dist/targets/scoop.d.ts.map +0 -1
- package/dist/targets/scoop.js +0 -88
- package/dist/targets/scoop.js.map +0 -1
- package/dist/types/effect-internal.d.ts +0 -5
- package/dist/types/effect-internal.d.ts.map +0 -1
- package/dist/types/effect-internal.js +0 -2
- package/dist/types/effect-internal.js.map +0 -1
- package/dist/workflows/config.d.ts +0 -202
- package/dist/workflows/config.d.ts.map +0 -1
- package/dist/workflows/config.js +0 -420
- package/dist/workflows/config.js.map +0 -1
- package/dist/workflows/diagnostics.d.ts +0 -62
- package/dist/workflows/diagnostics.d.ts.map +0 -1
- package/dist/workflows/diagnostics.js +0 -530
- package/dist/workflows/diagnostics.js.map +0 -1
- package/dist/workflows/distribution.d.ts +0 -25
- package/dist/workflows/distribution.d.ts.map +0 -1
- package/dist/workflows/distribution.js +0 -24
- package/dist/workflows/distribution.js.map +0 -1
- package/dist/workflows/evidence.d.ts +0 -17
- package/dist/workflows/evidence.d.ts.map +0 -1
- package/dist/workflows/evidence.js +0 -32
- package/dist/workflows/evidence.js.map +0 -1
- package/dist/workflows/index.d.ts +0 -8
- package/dist/workflows/index.d.ts.map +0 -1
- package/dist/workflows/index.js +0 -7
- package/dist/workflows/index.js.map +0 -1
- package/dist/workflows/init.d.ts +0 -84
- package/dist/workflows/init.d.ts.map +0 -1
- package/dist/workflows/init.js +0 -487
- package/dist/workflows/init.js.map +0 -1
- package/dist/workflows/live.d.ts +0 -9
- package/dist/workflows/live.d.ts.map +0 -1
- package/dist/workflows/live.js +0 -7
- package/dist/workflows/live.js.map +0 -1
- package/dist/workflows/options.d.ts +0 -30
- package/dist/workflows/options.d.ts.map +0 -1
- package/dist/workflows/options.js +0 -16
- package/dist/workflows/options.js.map +0 -1
- package/examples/non-strict-skips/artifacts/release-example-skips-0.1.0.tgz +0 -1
- package/examples/non-strict-skips/release.config.json +0 -31
- package/examples/pypi-registry/release.config.json +0 -31
- package/templates/github-actions/plan-and-approved-execute.yml +0 -58
- package/templates/github-actions/plan-only.yml +0 -33
- package/templates/github-actions/trusted-publishing.yml +0 -61
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
name: Release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
candidate_sha:
|
|
7
|
+
description: Exact candidate commit; it must be the current main tip.
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
prepared_ref:
|
|
11
|
+
description: Optional prepared:gha reference for recovery; leave empty for a fresh release.
|
|
12
|
+
required: false
|
|
13
|
+
default: ""
|
|
14
|
+
type: string
|
|
15
|
+
|
|
16
|
+
permissions:
|
|
17
|
+
contents: read
|
|
18
|
+
|
|
19
|
+
jobs:
|
|
20
|
+
release:
|
|
21
|
+
if: ${{ github.ref == 'refs/heads/main' && github.sha == inputs.candidate_sha }}
|
|
22
|
+
runs-on: ubuntu-24.04
|
|
23
|
+
permissions:
|
|
24
|
+
actions: read
|
|
25
|
+
contents: write
|
|
26
|
+
id-token: write
|
|
27
|
+
steps:
|
|
28
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
29
|
+
with:
|
|
30
|
+
persist-credentials: false
|
|
31
|
+
- id: setup-node
|
|
32
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
33
|
+
with:
|
|
34
|
+
node-version: "22.22.2"
|
|
35
|
+
- id: setup-bun
|
|
36
|
+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
37
|
+
with:
|
|
38
|
+
bun-version: "1.3.14"
|
|
39
|
+
- id: release-tools
|
|
40
|
+
name: Bind exact release tool paths
|
|
41
|
+
env:
|
|
42
|
+
SETUP_BUN_PATH: ${{ steps.setup-bun.outputs.bun-path }}
|
|
43
|
+
run: |-
|
|
44
|
+
node_path="$(type -P node)"
|
|
45
|
+
bun_path="$(type -P bun)"
|
|
46
|
+
[[ "$node_path" = /* && "$bun_path" = /* ]]
|
|
47
|
+
[[ "$("$node_path" --version)" == v22.22.2 ]]
|
|
48
|
+
[[ "$("$bun_path" --version)" == 1.3.14 ]]
|
|
49
|
+
[[ "$(realpath "$bun_path")" == "$(realpath "$SETUP_BUN_PATH")" ]]
|
|
50
|
+
echo "node-bin=$node_path" >> "$GITHUB_OUTPUT"
|
|
51
|
+
echo "bun-bin=$bun_path" >> "$GITHUB_OUTPUT"
|
|
52
|
+
- run: bun add --global npm@11.11.0
|
|
53
|
+
- name: Prime isolated Bun dependency cache
|
|
54
|
+
if: ${{ inputs.prepared_ref == '' }}
|
|
55
|
+
run: |-
|
|
56
|
+
bun install --frozen-lockfile --ignore-scripts --no-save --linker=hoisted
|
|
57
|
+
bun --no-env-file --no-install -e 'await (await import("node:fs/promises")).rm("node_modules", { recursive: true, force: true })'
|
|
58
|
+
- id: release
|
|
59
|
+
uses: mannyc2/ts-release/apps/ts-release-action@v0.3.0
|
|
60
|
+
env:
|
|
61
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
62
|
+
TS_RELEASE_NODE_BIN: ${{ steps.release-tools.outputs.node-bin }}
|
|
63
|
+
TS_RELEASE_BUN_BIN: ${{ steps.release-tools.outputs.bun-bin }}
|
|
64
|
+
with:
|
|
65
|
+
command: ${{ inputs.prepared_ref == '' && 'release' || 'publish' }}
|
|
66
|
+
config: ${{ inputs.prepared_ref == '' && 'release.config.json' || '' }}
|
|
67
|
+
prepared: ${{ inputs.prepared_ref }}
|
|
68
|
+
- name: Upload redacted release report
|
|
69
|
+
if: ${{ always() && steps.release.outputs.report-ref != '' }}
|
|
70
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
71
|
+
with:
|
|
72
|
+
name: ts-release-report-${{ github.run_attempt }}
|
|
73
|
+
path: ${{ steps.release.outputs.report-ref }}
|
|
74
|
+
if-no-files-found: error
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
name: Reviewed release
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
workflow_dispatch:
|
|
5
|
+
inputs:
|
|
6
|
+
candidate_sha:
|
|
7
|
+
description: Exact candidate commit; it must be the current main tip.
|
|
8
|
+
required: true
|
|
9
|
+
type: string
|
|
10
|
+
|
|
11
|
+
permissions:
|
|
12
|
+
contents: read
|
|
13
|
+
|
|
14
|
+
jobs:
|
|
15
|
+
prepare:
|
|
16
|
+
if: ${{ github.ref == 'refs/heads/main' && github.sha == inputs.candidate_sha }}
|
|
17
|
+
runs-on: ubuntu-24.04
|
|
18
|
+
outputs:
|
|
19
|
+
prepared-ref: ${{ steps.prepare.outputs.prepared-ref }}
|
|
20
|
+
steps:
|
|
21
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
22
|
+
with:
|
|
23
|
+
persist-credentials: false
|
|
24
|
+
- id: setup-node
|
|
25
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
26
|
+
with:
|
|
27
|
+
node-version: "22.22.2"
|
|
28
|
+
- id: setup-bun
|
|
29
|
+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
30
|
+
with:
|
|
31
|
+
bun-version: "1.3.14"
|
|
32
|
+
- id: release-tools
|
|
33
|
+
name: Bind exact release tool paths
|
|
34
|
+
env:
|
|
35
|
+
SETUP_BUN_PATH: ${{ steps.setup-bun.outputs.bun-path }}
|
|
36
|
+
run: |-
|
|
37
|
+
node_path="$(type -P node)"
|
|
38
|
+
bun_path="$(type -P bun)"
|
|
39
|
+
[[ "$node_path" = /* && "$bun_path" = /* ]]
|
|
40
|
+
[[ "$("$node_path" --version)" == v22.22.2 ]]
|
|
41
|
+
[[ "$("$bun_path" --version)" == 1.3.14 ]]
|
|
42
|
+
[[ "$(realpath "$bun_path")" == "$(realpath "$SETUP_BUN_PATH")" ]]
|
|
43
|
+
echo "node-bin=$node_path" >> "$GITHUB_OUTPUT"
|
|
44
|
+
echo "bun-bin=$bun_path" >> "$GITHUB_OUTPUT"
|
|
45
|
+
- run: bun add --global npm@11.11.0
|
|
46
|
+
- name: Prime isolated Bun dependency cache
|
|
47
|
+
run: |-
|
|
48
|
+
bun install --frozen-lockfile --ignore-scripts --no-save --linker=hoisted
|
|
49
|
+
bun --no-env-file --no-install -e 'await (await import("node:fs/promises")).rm("node_modules", { recursive: true, force: true })'
|
|
50
|
+
- id: prepare
|
|
51
|
+
uses: mannyc2/ts-release/apps/ts-release-action@v0.3.0
|
|
52
|
+
env:
|
|
53
|
+
TS_RELEASE_NODE_BIN: ${{ steps.release-tools.outputs.node-bin }}
|
|
54
|
+
TS_RELEASE_BUN_BIN: ${{ steps.release-tools.outputs.bun-bin }}
|
|
55
|
+
with:
|
|
56
|
+
command: prepare
|
|
57
|
+
config: reviewed-release.config.json
|
|
58
|
+
- name: Upload redacted preparation report
|
|
59
|
+
if: ${{ always() && steps.prepare.outputs.report-ref != '' }}
|
|
60
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
61
|
+
with:
|
|
62
|
+
name: ts-release-prepare-report-${{ github.run_attempt }}
|
|
63
|
+
path: ${{ steps.prepare.outputs.report-ref }}
|
|
64
|
+
if-no-files-found: error
|
|
65
|
+
|
|
66
|
+
publish:
|
|
67
|
+
if: ${{ github.ref == 'refs/heads/main' && github.sha == inputs.candidate_sha }}
|
|
68
|
+
needs: prepare
|
|
69
|
+
runs-on: ubuntu-24.04
|
|
70
|
+
environment: release
|
|
71
|
+
permissions:
|
|
72
|
+
contents: write
|
|
73
|
+
id-token: write
|
|
74
|
+
steps:
|
|
75
|
+
- uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0
|
|
76
|
+
with:
|
|
77
|
+
persist-credentials: false
|
|
78
|
+
- id: setup-node
|
|
79
|
+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
|
|
80
|
+
with:
|
|
81
|
+
node-version: "22.22.2"
|
|
82
|
+
- id: setup-bun
|
|
83
|
+
uses: oven-sh/setup-bun@0c5077e51419868618aeaa5fe8019c62421857d6 # v2.2.0
|
|
84
|
+
with:
|
|
85
|
+
bun-version: "1.3.14"
|
|
86
|
+
- id: release-tools
|
|
87
|
+
name: Bind exact release tool paths
|
|
88
|
+
env:
|
|
89
|
+
SETUP_BUN_PATH: ${{ steps.setup-bun.outputs.bun-path }}
|
|
90
|
+
run: |-
|
|
91
|
+
node_path="$(type -P node)"
|
|
92
|
+
bun_path="$(type -P bun)"
|
|
93
|
+
[[ "$node_path" = /* && "$bun_path" = /* ]]
|
|
94
|
+
[[ "$("$node_path" --version)" == v22.22.2 ]]
|
|
95
|
+
[[ "$("$bun_path" --version)" == 1.3.14 ]]
|
|
96
|
+
[[ "$(realpath "$bun_path")" == "$(realpath "$SETUP_BUN_PATH")" ]]
|
|
97
|
+
echo "node-bin=$node_path" >> "$GITHUB_OUTPUT"
|
|
98
|
+
echo "bun-bin=$bun_path" >> "$GITHUB_OUTPUT"
|
|
99
|
+
- run: bun add --global npm@11.11.0
|
|
100
|
+
- id: publish
|
|
101
|
+
uses: mannyc2/ts-release/apps/ts-release-action@v0.3.0
|
|
102
|
+
env:
|
|
103
|
+
GITHUB_TOKEN: ${{ github.token }}
|
|
104
|
+
TS_RELEASE_NODE_BIN: ${{ steps.release-tools.outputs.node-bin }}
|
|
105
|
+
TS_RELEASE_BUN_BIN: ${{ steps.release-tools.outputs.bun-bin }}
|
|
106
|
+
with:
|
|
107
|
+
command: publish
|
|
108
|
+
prepared: ${{ needs.prepare.outputs.prepared-ref }}
|
|
109
|
+
- name: Upload redacted publication report
|
|
110
|
+
if: ${{ always() && steps.publish.outputs.report-ref != '' }}
|
|
111
|
+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
|
|
112
|
+
with:
|
|
113
|
+
name: ts-release-publish-report-${{ github.run_attempt }}
|
|
114
|
+
path: ${{ steps.publish.outputs.report-ref }}
|
|
115
|
+
if-no-files-found: error
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Multi-target Homebrew template
|
|
2
|
+
|
|
3
|
+
This template renders one formula with separate Apple Silicon and Intel
|
|
4
|
+
download clauses. Both archives must be selected by the paired GitHub release
|
|
5
|
+
publication; the catalog subject is dependency-blocked until those upstream
|
|
6
|
+
asset subjects converge.
|
|
7
|
+
|
|
8
|
+
Replace the project, tap, homepage, artifact, and credential coordinates. A
|
|
9
|
+
repository check can prepare this template without publishing, but an actual
|
|
10
|
+
release requires explicit provider authority.
|
|
@@ -1,70 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
3
|
-
"
|
|
4
|
-
"name": "
|
|
5
|
-
"version": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
2
|
+
"$schema": "../../schema/release-config.schema.json",
|
|
3
|
+
"project": {
|
|
4
|
+
"name": "fixture",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"tag": "v1.0.0",
|
|
7
|
+
"repository": "owner/fixture"
|
|
8
8
|
},
|
|
9
9
|
"artifacts": [
|
|
10
10
|
{
|
|
11
|
-
"id": "
|
|
12
|
-
"path": ".",
|
|
13
|
-
"format": "
|
|
14
|
-
"consumers": ["npm"]
|
|
11
|
+
"id": "fixture-darwin-arm64",
|
|
12
|
+
"path": "dist/fixture-darwin-arm64.tar.gz",
|
|
13
|
+
"format": "tarball"
|
|
15
14
|
},
|
|
16
15
|
{
|
|
17
|
-
"id": "
|
|
18
|
-
"path": "
|
|
19
|
-
"format": "tarball"
|
|
20
|
-
"consumers": ["github", "homebrew"]
|
|
16
|
+
"id": "fixture-darwin-x64",
|
|
17
|
+
"path": "dist/fixture-darwin-x64.tar.gz",
|
|
18
|
+
"format": "tarball"
|
|
21
19
|
}
|
|
22
20
|
],
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"_tag": "GitHubReleaseTarget",
|
|
44
|
-
"id": "github",
|
|
45
|
-
"repository": "owner/repo",
|
|
46
|
-
"tokenEnv": "GH_TOKEN",
|
|
47
|
-
"draft": true,
|
|
48
|
-
"prerelease": false,
|
|
49
|
-
"dryRunSupport": "simulated",
|
|
50
|
-
"mutability": "mutable-release",
|
|
51
|
-
"recovery": "delete-and-recreate"
|
|
21
|
+
"catalogs": {
|
|
22
|
+
"homebrew": [
|
|
23
|
+
{
|
|
24
|
+
"id": "fixture-homebrew",
|
|
25
|
+
"formulaName": "fixture",
|
|
26
|
+
"description": "Fixture command",
|
|
27
|
+
"homepage": "https://example.com/fixture",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"installPath": "fixture",
|
|
30
|
+
"sources": [
|
|
31
|
+
{ "artifact": "fixture-darwin-arm64", "architecture": "arm64" },
|
|
32
|
+
{ "artifact": "fixture-darwin-x64", "architecture": "x64" }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"publish": {
|
|
38
|
+
"github": {
|
|
39
|
+
"repository": "owner/fixture",
|
|
40
|
+
"ids": ["fixture-darwin-arm64", "fixture-darwin-x64"]
|
|
52
41
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"mutability": "mutable-index",
|
|
65
|
-
"recovery": "manual"
|
|
66
|
-
}
|
|
67
|
-
],
|
|
68
|
-
"strict": true,
|
|
69
|
-
"evidenceDirectory": ".release/evidence/{version}"
|
|
42
|
+
"catalogGit": [
|
|
43
|
+
{
|
|
44
|
+
"catalog": "fixture-homebrew",
|
|
45
|
+
"repository": "owner/homebrew-tap",
|
|
46
|
+
"branch": "main",
|
|
47
|
+
"targetPath": "Formula/fixture.rb",
|
|
48
|
+
"statePath": ".ts-release/fixture-homebrew.json",
|
|
49
|
+
"tokenEnv": "GITHUB_TOKEN"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
70
53
|
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# Multi-target Scoop template
|
|
2
|
+
|
|
3
|
+
This template renders one Scoop manifest with x64 and arm64 ZIP downloads.
|
|
4
|
+
Both archives must be selected by the paired GitHub release publication; the
|
|
5
|
+
catalog subject is dependency-blocked until those upstream asset subjects
|
|
6
|
+
converge.
|
|
7
|
+
|
|
8
|
+
Replace the project, bucket, homepage, artifact, and credential coordinates.
|
|
9
|
+
A repository check can prepare this template without publishing, but an actual
|
|
10
|
+
release requires explicit provider authority.
|
|
@@ -1,72 +1,53 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "
|
|
3
|
-
"
|
|
4
|
-
"name": "
|
|
5
|
-
"version": "
|
|
6
|
-
"
|
|
7
|
-
"
|
|
2
|
+
"$schema": "../../schema/release-config.schema.json",
|
|
3
|
+
"project": {
|
|
4
|
+
"name": "fixture",
|
|
5
|
+
"version": "1.0.0",
|
|
6
|
+
"tag": "v1.0.0",
|
|
7
|
+
"repository": "owner/fixture"
|
|
8
8
|
},
|
|
9
9
|
"artifacts": [
|
|
10
10
|
{
|
|
11
|
-
"id": "
|
|
12
|
-
"path": ".",
|
|
13
|
-
"format": "
|
|
14
|
-
"consumers": ["npm"]
|
|
11
|
+
"id": "fixture-windows-x64",
|
|
12
|
+
"path": "dist/fixture-windows-x64.zip",
|
|
13
|
+
"format": "zip"
|
|
15
14
|
},
|
|
16
15
|
{
|
|
17
|
-
"id": "
|
|
18
|
-
"path": "
|
|
19
|
-
"format": "zip"
|
|
20
|
-
"consumers": ["github", "scoop"]
|
|
16
|
+
"id": "fixture-windows-arm64",
|
|
17
|
+
"path": "dist/fixture-windows-arm64.zip",
|
|
18
|
+
"format": "zip"
|
|
21
19
|
}
|
|
22
20
|
],
|
|
23
|
-
"
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
"
|
|
32
|
-
"
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
"_tag": "GitHubReleaseTarget",
|
|
44
|
-
"id": "github",
|
|
45
|
-
"repository": "owner/repo",
|
|
46
|
-
"tokenEnv": "GH_TOKEN",
|
|
47
|
-
"draft": true,
|
|
48
|
-
"prerelease": false,
|
|
49
|
-
"dryRunSupport": "simulated",
|
|
50
|
-
"mutability": "mutable-release",
|
|
51
|
-
"recovery": "delete-and-recreate"
|
|
21
|
+
"catalogs": {
|
|
22
|
+
"scoop": [
|
|
23
|
+
{
|
|
24
|
+
"id": "fixture-scoop",
|
|
25
|
+
"manifestName": "fixture",
|
|
26
|
+
"description": "Fixture command",
|
|
27
|
+
"homepage": "https://example.com/fixture",
|
|
28
|
+
"license": "MIT",
|
|
29
|
+
"bin": "fixture.exe",
|
|
30
|
+
"sources": [
|
|
31
|
+
{ "artifact": "fixture-windows-x64", "architecture": "x64" },
|
|
32
|
+
{ "artifact": "fixture-windows-arm64", "architecture": "arm64" }
|
|
33
|
+
]
|
|
34
|
+
}
|
|
35
|
+
]
|
|
36
|
+
},
|
|
37
|
+
"publish": {
|
|
38
|
+
"github": {
|
|
39
|
+
"repository": "owner/fixture",
|
|
40
|
+
"ids": ["fixture-windows-x64", "fixture-windows-arm64"]
|
|
52
41
|
},
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
"bin": "pkg.exe",
|
|
65
|
-
"dryRunSupport": "simulated",
|
|
66
|
-
"mutability": "mutable-index",
|
|
67
|
-
"recovery": "manual"
|
|
68
|
-
}
|
|
69
|
-
],
|
|
70
|
-
"strict": true,
|
|
71
|
-
"evidenceDirectory": ".release/evidence/{version}"
|
|
42
|
+
"catalogGit": [
|
|
43
|
+
{
|
|
44
|
+
"catalog": "fixture-scoop",
|
|
45
|
+
"repository": "owner/scoop-bucket",
|
|
46
|
+
"branch": "main",
|
|
47
|
+
"targetPath": "bucket/fixture.json",
|
|
48
|
+
"statePath": ".ts-release/fixture-scoop.json",
|
|
49
|
+
"tokenEnv": "GITHUB_TOKEN"
|
|
50
|
+
}
|
|
51
|
+
]
|
|
52
|
+
}
|
|
72
53
|
}
|
|
@@ -1,50 +1,37 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://
|
|
3
|
-
"
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/mannyc2/ts-release/main/schema/release-config.schema.json",
|
|
3
|
+
"project": {
|
|
4
4
|
"name": "@scope/pkg",
|
|
5
|
+
"packageName": "@scope/pkg",
|
|
6
|
+
"repository": "owner/repo",
|
|
5
7
|
"version": "0.1.0",
|
|
6
|
-
"commit": "abc123",
|
|
7
8
|
"tag": "v0.1.0"
|
|
8
9
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
"provider": "github-actions",
|
|
26
|
-
"workflow": "release.yml",
|
|
27
|
-
"packageExists": true,
|
|
28
|
-
"verifyPackageExists": true
|
|
10
|
+
"npmPackage": {
|
|
11
|
+
"path": "."
|
|
12
|
+
},
|
|
13
|
+
"publish": {
|
|
14
|
+
"npm": {
|
|
15
|
+
"registry": "https://registry.npmjs.org/",
|
|
16
|
+
"authentication": {
|
|
17
|
+
"strategy": "trusted-publishing",
|
|
18
|
+
"attestation": {
|
|
19
|
+
"provider": "github-actions",
|
|
20
|
+
"runner": "github-hosted",
|
|
21
|
+
"repository": "owner/repo",
|
|
22
|
+
"workflow": "release.yml",
|
|
23
|
+
"workflowRef": "refs/heads/main",
|
|
24
|
+
"allowedAction": "npm-publish-direct"
|
|
25
|
+
}
|
|
29
26
|
},
|
|
30
27
|
"access": "public",
|
|
31
|
-
"provenance":
|
|
32
|
-
"dryRunSupport": "native",
|
|
33
|
-
"mutability": "immutable",
|
|
34
|
-
"recovery": "publish-new-version"
|
|
28
|
+
"provenance": "automatic"
|
|
35
29
|
},
|
|
36
|
-
{
|
|
37
|
-
"_tag": "GitHubReleaseTarget",
|
|
38
|
-
"id": "github",
|
|
30
|
+
"github": {
|
|
39
31
|
"repository": "owner/repo",
|
|
40
|
-
"tokenEnv": "
|
|
32
|
+
"tokenEnv": "GITHUB_TOKEN",
|
|
41
33
|
"draft": true,
|
|
42
|
-
"prerelease": false
|
|
43
|
-
"dryRunSupport": "simulated",
|
|
44
|
-
"mutability": "mutable-release",
|
|
45
|
-
"recovery": "delete-and-recreate"
|
|
34
|
+
"prerelease": false
|
|
46
35
|
}
|
|
47
|
-
|
|
48
|
-
"strict": true,
|
|
49
|
-
"evidenceDirectory": ".release/evidence/{version}"
|
|
36
|
+
}
|
|
50
37
|
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/mannyc2/ts-release/main/schema/release-config.schema.json",
|
|
3
|
+
"project": {
|
|
4
|
+
"name": "@scope/pkg",
|
|
5
|
+
"packageName": "@scope/pkg",
|
|
6
|
+
"repository": "owner/repo",
|
|
7
|
+
"version": "0.1.0",
|
|
8
|
+
"tag": "v0.1.0"
|
|
9
|
+
},
|
|
10
|
+
"npmPackage": {
|
|
11
|
+
"path": "."
|
|
12
|
+
},
|
|
13
|
+
"publish": {
|
|
14
|
+
"npm": {
|
|
15
|
+
"registry": "https://registry.npmjs.org/",
|
|
16
|
+
"authentication": {
|
|
17
|
+
"strategy": "trusted-publishing",
|
|
18
|
+
"attestation": {
|
|
19
|
+
"provider": "github-actions",
|
|
20
|
+
"runner": "github-hosted",
|
|
21
|
+
"repository": "owner/repo",
|
|
22
|
+
"workflow": "reviewed-release.yml",
|
|
23
|
+
"workflowRef": "refs/heads/main",
|
|
24
|
+
"allowedAction": "npm-publish-direct"
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"access": "public",
|
|
28
|
+
"provenance": "automatic"
|
|
29
|
+
},
|
|
30
|
+
"github": {
|
|
31
|
+
"repository": "owner/repo",
|
|
32
|
+
"tokenEnv": "GITHUB_TOKEN",
|
|
33
|
+
"draft": true,
|
|
34
|
+
"prerelease": false
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
# npm token-mode template
|
|
2
|
+
|
|
3
|
+
This template is the explicit non-OIDC migration path. The authored config
|
|
4
|
+
contains only the environment-variable name `NPM_TOKEN`; the token value stays
|
|
5
|
+
inside the host credential boundary and is written only to the scoped,
|
|
6
|
+
temporary npm user config during an authorized publish.
|
|
7
|
+
|
|
8
|
+
For GitHub-hosted Actions, prefer `../npm-github/release.config.json` and its
|
|
9
|
+
explicit trusted-publisher attestation. Do not combine the token and trusted
|
|
10
|
+
authentication shapes.
|
|
@@ -1,39 +1,24 @@
|
|
|
1
1
|
{
|
|
2
|
-
"$schema": "https://
|
|
3
|
-
"
|
|
2
|
+
"$schema": "https://raw.githubusercontent.com/mannyc2/ts-release/main/schema/release-config.schema.json",
|
|
3
|
+
"project": {
|
|
4
4
|
"name": "@scope/pkg",
|
|
5
|
+
"packageName": "@scope/pkg",
|
|
6
|
+
"repository": "owner/repo",
|
|
5
7
|
"version": "0.1.0",
|
|
6
|
-
"commit": "abc123",
|
|
7
8
|
"tag": "v0.1.0"
|
|
8
9
|
},
|
|
9
|
-
"
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
"
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
{
|
|
19
|
-
"_tag": "NpmRegistryTarget",
|
|
20
|
-
"id": "npm",
|
|
21
|
-
"registry": "https://registry.npmjs.org",
|
|
22
|
-
"packageName": "@scope/pkg",
|
|
23
|
-
"packagePath": ".",
|
|
24
|
-
"trustedPublishing": {
|
|
25
|
-
"provider": "github-actions",
|
|
26
|
-
"workflow": "release.yml",
|
|
27
|
-
"packageExists": true,
|
|
28
|
-
"verifyPackageExists": true
|
|
10
|
+
"npmPackage": {
|
|
11
|
+
"path": "."
|
|
12
|
+
},
|
|
13
|
+
"publish": {
|
|
14
|
+
"npm": {
|
|
15
|
+
"registry": "https://registry.npmjs.org/",
|
|
16
|
+
"authentication": {
|
|
17
|
+
"strategy": "token",
|
|
18
|
+
"credential": "NPM_TOKEN"
|
|
29
19
|
},
|
|
30
20
|
"access": "public",
|
|
31
|
-
"provenance":
|
|
32
|
-
"dryRunSupport": "native",
|
|
33
|
-
"mutability": "immutable",
|
|
34
|
-
"recovery": "publish-new-version"
|
|
21
|
+
"provenance": "disabled"
|
|
35
22
|
}
|
|
36
|
-
|
|
37
|
-
"strict": true,
|
|
38
|
-
"evidenceDirectory": ".release/evidence/{version}"
|
|
23
|
+
}
|
|
39
24
|
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
# Portable CLI template
|
|
2
|
+
|
|
3
|
+
This complete fixture prepares one Bun CLI for GitHub Releases and npm. Its
|
|
4
|
+
artifact targets are Linux and macOS x64/arm64; ts-release itself runs only on
|
|
5
|
+
Linux. Preparation requires an external Bun runtime and `libseccomp.so.2` on
|
|
6
|
+
the Linux host. A standalone CLI binary still uses those native tools for
|
|
7
|
+
network-denied commands and is not a self-contained preparation environment.
|
|
8
|
+
Update all product and destination identities before use.
|
|
9
|
+
|
|
10
|
+
```sh
|
|
11
|
+
ts-release inspect --config release.config.json
|
|
12
|
+
ts-release release --config release.config.json
|
|
13
|
+
```
|