To publish the package automatically to npm, ensure the following requirements are met:
- The package must reside in a separate folder within the repository, such as the
e2epackage. - A
package.jsonfile with a defined version must be present. When the version is updated and the PR is merged into the master branch, the package will be automatically uploaded to npm. - The
package.jsonfile must include apublishscript. This is mandatory as the publish workflow executes this script. The script can be as simple as:
"publish": "npm publish"if no build steps are required, or:
"publish": "${clear/build commands} && npm publish"if you need to clean and build the package before publishing.
4. For Vite plugins related to GamefaceUI, include them in the gameface-ui-vite-plugins folder and adhere to the same rules outlined in points 1 to 3.