Skip to content

chore: add npm package release workflow using changesets - #2

Merged
wre232114 merged 2 commits into
mainfrom
copilot/add-npm-package-release-workflow
Mar 30, 2026
Merged

chore: add npm package release workflow using changesets#2
wre232114 merged 2 commits into
mainfrom
copilot/add-npm-package-release-workflow

Conversation

Copilot AI commented Mar 30, 2026

Copy link
Copy Markdown
Contributor

Sets up @changesets/cli for versioning and publishing, and wires a GitHub Actions release workflow that opens version bump PRs and publishes to npm on merge.

Changesets config (.changeset/config.json)

  • access: "public" — required for scoped @harfai/* packages
  • ignore: ["@harfai/frontend", "@harfai/backend", "@harfai/e2e"] — excludes app/test packages from publish

Release workflow (.github/workflows/release.yml)

  • Triggers on push to main
  • Uses changesets/action@v1: creates/updates a "Version Packages" PR when changesets are pending; publishes to npm when that PR is merged
  • Requires NPM_TOKEN repository secret (automation token from npmjs.com)

Package hygiene

  • @harfai/frontend, @harfai/backend, @harfai/e2e — marked "private": true
  • Publishable packages (@harfai/shared, @harfai/openapi, @harfai/cli) — no change needed

Root package.json

  • Added @changesets/cli@2.30.0 to devDependencies
  • Added release script: pnpm build && changeset publish

⚡ Quickly spin up Copilot coding agent tasks from anywhere on your macOS or Windows machine with Raycast.

Copilot AI changed the title [WIP] Add npm package release workflow using changesets chore: add npm package release workflow using changesets Mar 30, 2026
Copilot AI requested a review from wre232114 March 30, 2026 08:26
@wre232114
wre232114 marked this pull request as ready for review March 30, 2026 08:50
@wre232114
wre232114 merged commit 7dc02e5 into main Mar 30, 2026
2 checks passed
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.

2 participants