Skip to content

Editor npm package

LarsTheGlidingSquirrel edited this page Feb 19, 2024 · 1 revision

Build & test package locally

  1. Increment version number in packages/editor/package.json (make sure this version string was never used to build previously to avoid yarn caching issues)
  2. Run yarn build && npm pack inside packages/editor
  3. You will find a serlo-editor-0.6.0-beta.[x].tgz
  4. Now you can link this file in another project in the package.json like
"dependencies": {
  "@serlo/editor": "file:/home/lars/git-repos/frontend/packages/editor/serlo-editor-0.6.0-beta.10.tgz",

Deploy package to npm

A Github workflow is set up to publish the package to npm. See editor.yaml

  1. Test the package locally
  2. Increment version number in packages/editor/package.json
  3. Merge your changes into either editor-package-vite or staging to trigger the workflow.
Clone this wiki locally