Editor npm package - serlo/frontend GitHub Wiki
Build & test package locally
- Increment version number in
packages/editor/package.json(make sure this version string was never used to build previously to avoid yarn caching issues) - Run yarn
build && npm packinsidepackages/editor - You will find a
serlo-editor-0.6.0-beta.[x].tgz - Now you can link this file in another project in the
package.jsonlike
"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
- Test the package locally
- Increment version number in
packages/editor/package.json - Merge your changes into either
editor-package-viteorstagingto trigger the workflow.