Skip to content

Add build and publish CI for @cratis/chronicle#10

Merged
einari merged 2 commits intomainfrom
copilot/add-build-and-publish
May 9, 2026
Merged

Add build and publish CI for @cratis/chronicle#10
einari merged 2 commits intomainfrom
copilot/add-build-and-publish

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 9, 2026

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 — runs yarn ci on PRs touching Source/** or .github/workflows/**; job scoped to permissions: contents: read
  • .github/workflows/publish.yml — triggered on merged PRs or workflow_dispatch; uses cratis/release-action@v1 to resolve the version, then publishes via OIDC trusted publishing (npm publish --provenance)

Supporting scripts

  • publish-version.js — updates Source/package.json to the target version, copies root README.md into Source/ if absent, then publishes
  • Root package.json gains two scripts:
    • ciyarn clean && yarn build (clean build for pipelines)
    • publish-versionnode ./publish-version.js <version>

Package metadata

  • Source/package.json gains a files field (dist, **/*.ts) so only the compiled output and source types are included in the published artifact
  • Fixed stale repository URL (einari/Cratis/)

Copilot AI linked an issue May 9, 2026 that may be closed by this pull request
Copilot AI changed the title [WIP] Add build and publish setup for package Add build and publish CI for @cratis/chronicle May 9, 2026
Copilot finished work on behalf of einari May 9, 2026 08:46
Copilot AI requested a review from einari May 9, 2026 08:46
@einari einari marked this pull request as ready for review May 9, 2026 09:13
@einari einari merged commit f15e174 into main May 9, 2026
@einari einari deleted the copilot/add-build-and-publish branch May 9, 2026 09:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add build and publish

2 participants