Skip to content

Switch monorepo to npm core package #3772

@flopez7

Description

@flopez7

Description
Update monorepo to consume @human-protocol/core from npm instead of workspace:*, and split contract deployment + release workflows from the current cd-packages.yaml so npm publishing (and its changesets) runs before merging to develop.

Motivation
Using the published npm package removes the per-build core compilation step, cutting build times (previously ~15 minutes) for several packages. We also keep the repo history intact and can still switch back to workspace:* when local contract changes are needed

Implementation details

  • Replace all @human-protocol/core: workspace:* dependencies across services/packages with the npm latest version.
  • Decouple contract deployment and releases from cd-packages.yaml into a dedicated workflow that can run earlier.
  • Create a separate changeset configuration for the core package release flow, and run it before changes land in develop.
  • Ensure CI/tests use the published package by default, with an option to switch back to workspace:* for local dev.

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

Status

In Progress

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions