@guardian/support-dotcom-components
TypeScript icon, indicating that this package has built-in type declarations

2.0.1 • Public • Published

@guardian/support-dotcom-components

A library for use by dotcom (frontend/DCR). This is for sharing logic and types with dotcom (frontend + dcr).

Publishing to NPM

Releasing to NPM is handled with changesets and is performed by CI.

On your feature branch, before merging, run yarn dotcom changeset from the root of the project. This will interactively ask you what kind of change this is (major, minor, patch) and allow you to describe the change. Commit the generated changeset file to git and push to your branch.

When you merge the branch, a version release PR will be automatically opened.

IMPORTANT - you now need push a commit to this branch which manually deletes the changeset file(s) under packages/dotcom/.changeset/. These files are supposed to be deleted automatically, but aren't, probably because of our yarn workspaces setup.

When this PR is merged, a new release will be pushed to NPM. The version change will be based on the information in your changeset file. If the version release PR isn't merged straight away, that's fine. Any other PRs with changesets merged in the meantime will cause the release PR to be updated.

Note - currently the Release job in CI will show as failed because it tries to publish the same version twice.

Not all PRs require releasing and therefore don't need a changeset. For example a change to the README.

Readme

Keywords

none

Package Sidebar

Install

npm i @guardian/support-dotcom-components

Weekly Downloads

659

Version

2.0.1

License

MIT

Unpacked Size

393 kB

Total Files

66

Last publish

Collaborators

  • joecowton1
  • guardian-developers
  • akash1810
  • reetta
  • sndrs
  • mxdvl