Add build and publish CI for @cratis/chronicle#10
Merged
Conversation
Closed
Agent-Logs-Url: https://github.com/Cratis/Chronicle.TypeScript/sessions/9110302a-e69c-4260-9c28-e1de073af5bb Co-authored-by: einari <134365+einari@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Add build and publish setup for package
Add build and publish CI for @cratis/chronicle
May 9, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No CI workflows existed for this repo. Adds build and npm publish pipelines following the same conventions as Cratis/Arc.
Workflows
.github/workflows/build.yml— runsyarn cion PRs touchingSource/**or.github/workflows/**; job scoped topermissions: contents: read.github/workflows/publish.yml— triggered on merged PRs orworkflow_dispatch; usescratis/release-action@v1to resolve the version, then publishes via OIDC trusted publishing (npm publish --provenance)Supporting scripts
publish-version.js— updatesSource/package.jsonto the target version, copies rootREADME.mdintoSource/if absent, then publishespackage.jsongains two scripts:ci→yarn clean && yarn build(clean build for pipelines)publish-version→node ./publish-version.js <version>Package metadata
Source/package.jsongains afilesfield (dist,**/*.ts) so only the compiled output and source types are included in the published artifacteinari/→Cratis/)