Repository navigation
Conversation
- ci.yml: typecheck, build, test, contract (DSH 0.2.1-rc.5 / 0.2.2-rc.1), reproducible-build check and pack dry run on Node 22 - release.yml: on v* tags, verify tag == package.json version and release notes, rerun the checks, publish with provenance (next for prereleases, else latest) and create a GitHub Release with the tgz - pnpm-workspace.yaml: declare packages so pnpm 9 accepts it; pin packageManager pnpm@11.25.0 - package.json: repository/homepage/bugs for dsh-labs/dsh-code-highlight, publishConfig - tsdown: use deps.neverBundle/alwaysBundle (same output bytes) - README: install, behaviour, limits, compatibility, release
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.
Summary
Adds CI for pull requests and
main, plus a tag-driven release that publishes to npm with provenance and creates a GitHub Release. Also fixes the pnpm workspace file sopnpm install --frozen-lockfile && pnpm run build && pnpm testworks locally and on CI.Changes
.github/workflows/ci.ymlruns on pushes tomainand on PRs, on Node 22 with pnpm taken frompackageManager:node scripts/contract.mjsagainst the public npm packages of DSH 0.2.1-rc.5 and 0.2.2-rc.1;dist/;npm pack --dry-run..github/workflows/release.ymlruns onv*tags only, modelled ondsh-labs/dsh-agent-scheduler:package.jsonversion;.github/release-notes/<tag>.mdhas## Highlights/## Breaking changes/## Fixes/## Compatibility;npm publish --provenance --access public, with tagnextfor versions containing-andlatestotherwise, andNODE_AUTH_TOKENfromsecrets.NPM_TOKEN;gh release createwith the same packed tgz and those notes.Permissions are
contents: writeandid-token: write.pnpm-workspace.yaml: declarespackages: ['.']. pnpm 9 rejected the file without it ("packages field missing or empty").allowBuildsfor esbuild is kept.package.json:repository,homepageandbugsnow point atdsh-labs/dsh-code-highlight; provenance requiresrepository.urlto match this repo;publishConfig: { access: public, provenance: true };packageManager: pnpm@11.25.0;test:contracttocontract.tsdown.config.ts: moves from the deprecatedexternal/noExternaltodeps.neverBundle/deps.alwaysBundle.dist/client.jsis byte-identical to before (sha256b62ad502…)..github/release-notes/v0.1.0.md: notes for the first release, ready for when it is tagged.README: adds install instructions (
dsh plugin --profile desktop add dsh-code-highlight), what the plugin does, the inherited limits, a compatibility table and the release process.Testing
pnpm install --frozen-lockfile && pnpm run buildsucceeds on pnpm 9.15.9 (previously failed), 10 (defers to the pinned 11.25.0) and 11.25.0.pnpm run typecheckpasses;pnpm testpasses 35/35;node scripts/contract.mjspasses 120/120 checks;scripts/check-reproducible.shreports identical output;npm pack --dry-runlists 14 files at 19.2 kB.Notes
v0.1.0) waits for an explicit go-ahead..github/release-notes/vX.Y.Z.md; the release job fails early if the file is missing or lacks a heading.