-
Manually modify the version inside the
package.jsonfile. -
Run the
versionscript to update the relevant files inrelease/npm run version
The following files are needed for a release:
main.js- Releasestyles.css- Releasemanifest.json- Release, Repoversions.json- Repo
Repo: Commit as a file in the root of the plugin release repository
Release: Upload as part of the tagged release
Run the following command to generate the needed files:
npm run make-release-files [--package-out-dir=<directory>]This command will:
- Run
npm run versionto updatemanifest.jsonandversions.jsonin therelease/directory - Run
npm run buildto build the production files - Run
npm run package -- --out-dir=<directory>to copy all release files to the specified directory
The
--package-out-dirargument is forwarded tonpm run packageas--out-dirIf
--package-out-diris not specified, files will be copied torelease/package/The
packagescript also supports--cleanto remove packaged files from a directory:npm run package -- --clean [--out-dir=<directory>]