{"_id":"liferay-js-publish","_rev":"37-825c9158be1efcaa6bc37695514372af","name":"liferay-js-publish","dist-tags":{"prerelease":"1.1.0-alpha.1","latest":"1.1.0"},"versions":{"1.0.0":{"name":"liferay-js-publish","version":"1.0.0","license":"BSD-3-Clause","_id":"liferay-js-publish@1.0.0","maintainers":[{"name":"wincent","email":"greg@hurrell.net"}],"homepage":"https://github.com/liferay/liferay-npm-tools/tree/master/packages/liferay-js-publish","bin":{"liferay-js-publish":"./bin/liferay-js-publish.js"},"dist":{"shasum":"cebcc7963334d5fe4d61a633a27a6b8badd8d836","tarball":"https://registry.npmjs.org/liferay-js-publish/-/liferay-js-publish-1.0.0.tgz","fileCount":9,"integrity":"sha512-tapm7zlheKjiDzRJNnKZ5Xo7H2Pa+LXxJDHkkgMaqSEvgEbQzeaT6377IUxlUYwG9j0gU5nkA1dax4ubLuRlwg==","signatures":[{"sig":"MEUCIQCLSEYubUsZ9j8xSmXMBJg1belGeit9fR+bouJyZMIJTQIgE6bd/XjaNz3qsshH/N0q5wIIFm7Abv//2yaVLCt3ecQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9547,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiLcVCRA9TVsSAnZWagAAy1IP/2FosXb/FToxo5rRe6PP\nB8pi+MqmI2+Ll8FOnOOHuiGPbzFpDke6b+W7c0ymyU98m/13Z013rffAnkk2\nmQU1HMntrOQoRN/EqhplvibeI5l56rMCrXH/K8SDbfOLUDNBFGSj/7+ZQlji\nICnu4sn8QXkMokGQNmg+eRnfrNQfHh3XV641f1TErXiCI77AIsz4ObXZSPt+\nV2MJ7O1ESg8IH8pb32aCCs4ovZxWb/ZuAJYjrLIlf7qJSwXEzStX+Bz0aiy/\nIfXqCSO5pV3YkQ5iePEmmVb+paeWCzJKqqbBX3IB8sjGtTmC7NsUnAWNrcGq\n8eeB4NdVX1uwORiDBtTZi9ThuLoIKjvPtOi9dOfq5UdNCxA03wmnfE2Yoe52\nb81c6JjWShpz2f5vTcf1xMZoySjrnRI7aD7KhZb3rZNWDf9jXNBgCvcYVmzW\nBzQWIiwr6CqI3A5AHDlAOThcvM1YiDUMgjofdAdc7ky5OfYHx9JkCDnuRCX/\nIEglEzFP5c8YgA6BL9Zg54CRRFgFbTJIpecnAjZiG9tDWzAtxwdkoUMla+yc\ncC2SgTsn6EOSmlXzvxvwnt40/73IEPihWsIruI1fCEkDtM5g/LkMZ374uBsL\nBdpPdZUHerSaQnaQxYmYOfU+gkVAECz1r+uM2S400P4IAukgFywlrD+qo8h/\nkfqx\r\n=7YYZ\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","private":false,"scripts":{"test":"echo 'No tests currently defined for liferay-js-publish'","preversion":"cd ../.. && yarn ci","postversion":"node bin/liferay-js-publish.js"},"_npmUser":{"name":"wincent","email":"greg@hurrell.net"},"deprecated":"Please see @liferay/js-publish instead","repository":{"url":"https://github.com/liferay/liferay-npm-tools","type":"git","directory":"packages/liferay-js-publish"},"description":"Publishes an NPM package via \"yarn version\"","directories":{},"dependencies":{"cross-spawn":"^6.0.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/liferay-js-publish_1.0.0_1569240852873_0.5289511404501863","host":"s3://npm-registry-packages"}},"1.0.1":{"name":"liferay-js-publish","version":"1.0.1","license":"BSD-3-Clause","_id":"liferay-js-publish@1.0.1","maintainers":[{"name":"wincent","email":"greg@hurrell.net"}],"homepage":"https://github.com/liferay/liferay-npm-tools/tree/master/packages/liferay-js-publish","bin":{"liferay-js-publish":"./bin/liferay-js-publish.js"},"dist":{"shasum":"c53c0c1913e15a42559b5a261184872f6f738e74","tarball":"https://registry.npmjs.org/liferay-js-publish/-/liferay-js-publish-1.0.1.tgz","fileCount":9,"integrity":"sha512-FQit6/CTLuqlAbNsaMr3OySr/1JmrMBf2meA8QbD/LoOpbK4TJ0b56q4PHe1qbGL6XJzAIx2TycjVSr48xJo7g==","signatures":[{"sig":"MEUCIQCR90OK9ue9kpCszoftioVLW0rLAwEEl0/PCZ39inRRKgIgC95SvrnA4TxplYA+BaNjF41Qh7wjv7VF64jDxO3K1h0=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":9537,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdiMOeCRA9TVsSAnZWagAA7TUP/iwLGd6Pnv9mj5b1k8yW\nNn8+59gQgcMQBb5XX4sBFFSXWaDz0AruvLhu2Wf1BfnYdyQ3bL/RrtgFvpIV\nVkWYY9CijJSDT3me0zxPZwJVfgapo+M7m/3pU/aIjF+2IusEGOltJlxZw1AZ\nfibrBpXYwUWgO5Tak4xn3YyP1x4kBd4YDAMwYtuyaO2WImDZH1WSGkYzd6Vh\nQpBj8SgbiWG5BUpCBGAIBZYqnKCsUWX9mB1nRuSE79HNi3qB0HDcfzZkRDdV\nzldoub/e4eyQPPp4z2w4UTAN8TNthzwwCibLR6+hPpo//kB5Fj1xjy4v+0Tm\nZ0CmJbtGrnoeZao4ch1hkiKIDURjuy/affhA9JvmshmmSKWl2LGH71Mwl3Pw\nOEnDGvSH8WvOgo1IErlaQRdFxGryswy1A1pkb217uT0W8gI5ucXZas4qIJK5\nswAKyVyL4VFJ+NEeXG9V+3CQ2rHsAGPNpaYHa24+9FwovtsXFY8z6ZvL1JLT\n9u/rZgiivOpi+vloxxlGnHUp/iU9HiSvBNzveYhOdtkDoMG5NLGF8iHrFvBF\nIlteTlRqcVNQy38tqYrSFCMkn7mrQYWaDiu7NLvvbl9k42P3oxsETVvXOGA9\nJE7NsF7Q6mpSQte4aqKhgmqovAlCdJ79WSmPy2FNEOOXn0MjfuQCD0uqct0V\nT5vZ\r\n=h/Lc\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","private":false,"scripts":{"test":"echo 'No tests currently defined for liferay-js-publish'","preversion":"cd ../.. && yarn ci","postversion":"node bin/liferay-js-publish.js"},"_npmUser":{"name":"wincent","email":"greg@hurrell.net"},"deprecated":"Please see @liferay/js-publish instead","repository":{"url":"https://github.com/liferay/liferay-npm-tools","type":"git","directory":"packages/liferay-js-publish"},"description":"Publishes an NPM package via \"yarn version\"","directories":{},"dependencies":{"cross-spawn":"^6.0.5"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/liferay-js-publish_1.0.1_1569244061727_0.17330938071380242","host":"s3://npm-registry-packages"}},"1.1.0-alpha.1":{"name":"liferay-js-publish","version":"1.1.0-alpha.1","license":"BSD-3-Clause","_id":"liferay-js-publish@1.1.0-alpha.1","maintainers":[{"name":"brunobasto","email":"b.basto@gmail.com"},{"name":"bryceosterhaus","email":"bryceosterhaus@gmail.com"},{"name":"carloslancha","email":"carlitoslancha@gmail.com"},{"name":"diegonvs","email":"diegonascimentovirgiliodasilva@gmail.com"},{"name":"gagranta","email":"gagranta@gmail.com"},{"name":"izaera","email":"izaera@gmx.es"},{"name":"jbalsas","email":"jbalsas@gmail.com"},{"name":"jcastelain","email":"jcastelain@gmail.com"},{"name":"liferay","email":"continuous-integration@liferay.com"},{"name":"marko.cikos","email":"mcikos@gmail.com"},{"name":"matuzalemteles","email":"matuzalemteles@gmail.com"},{"name":"p2kmgcl","email":"contact@pablomolina.me"},{"name":"sandrodw3","email":"sandrochinea@gmail.com"},{"name":"wincent","email":"greg@hurrell.net"}],"homepage":"https://github.com/liferay/liferay-npm-tools/tree/master/packages/liferay-js-publish","bin":{"liferay-js-publish":"bin/liferay-js-publish.js"},"dist":{"shasum":"88a0c6f29629245edcaa5f9f3bbf500ae8d29f29","tarball":"https://registry.npmjs.org/liferay-js-publish/-/liferay-js-publish-1.1.0-alpha.1.tgz","fileCount":10,"integrity":"sha512-s9txF8ygXBREuVm08gPhtXpZxbEtU/EJjnrC9WoM4DBasXFH9TJGOv94ggK2VLaSh4wf2mEoySNWQ/4QsUxERg==","signatures":[{"sig":"MEUCIBgKc+6qgnSC82uFbY57uAdXxPvN/DC1Ujmj55t0nXbKAiEA7JuFMLQOFeab/EfZi4tYkt4waOSV3BkH9FzOyCeGLFQ=","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":11736,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJeey4RCRA9TVsSAnZWagAAPEsP/0DiS8eQSmGG+n++ZidT\n1DhtZ1i0xpKHmcJuODVVVv+zgs3EUsQxzO58976PfbajLYeBbll2+l/7yY0m\neO6oXr6bH8mtqzSPajVOEyHWhIAja2jbmjxbUO1Nl25YlUi4UJ39k+MPZkQe\ncH9GTsCjRHc5towxnNd4/JTkEuNIWKoH3C+oxd+/AY5Mf5axRAWZpJRbFxpr\n4vYvPd8BPgKBUI/1yFXDUnK1XnmDWwVgYPcq9n2D8nxu8K8Mv17HQLlW2bX6\nIvEd5nRWKJt523+cgFYGj9lut5g9ISI7lmTfP8dbaJmKQuAQuj0r7W7M3fyO\n1o+YcWQVMud5rm0lhN+GwC/ImE1rVcMYDYTrpn3tdvTxhJ/rPCXSAdOoX64W\ndYh+kOs2OooL9Fij4+TNp0dYNjjY9AvlLfmPZH2/guaHaPev96C3Wv06jViq\nUNBUtAfLW1ncm9i2uOwygm9dP7qK5994j5iwS1bXhB9P8OhgswZX8FA3YofW\nb+1PD/RHSVvSlF2AmcJVBU8pWowOm61QnNhfGF+ctQDXlwviHPI6pPv3swBk\n6URGQcztcMAXo4sPVbpGD7Pbdk9qQN3djjvvnv4+cYWFKMyeOWzkXB+pS56v\n/3+vG9st3tKVkElU8+rebUezK6Ffr0MKk4TPFwvkpW2FXqMMCimZ4uE0tF6a\nELhk\r\n=L6u9\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","readme":"# liferay-js-publish\n\n> A script for publishing an NPM package via `yarn version`.\n\nSimplifying assumptions:\n\n-   You are working in a repository that uses Yarn\n-   You develop on the \"master\" branch and update \"stable\" whenever you do a release\n-   You publish using `yarn version`\n-   You are millennial (or pretend to be) and expect your tools to use emoji 😎\n\n## Installation\n\n### 1. Install the package\n\nEither:\n\n-   Install globally: `yarn global add liferay-js-publish`; or:\n-   Add to a project: `yarn add --dev liferay-js-publish`; or:\n\nNote that you can also just use the latest without installing (ie. via `npx liferay-js-publish`). It is safe to use liferay-js-publish as an implicit dependency because we control the package, we maintain all the projects that use the package, and we won't make any breaking changes (or at least, we won't make any undetected breaking changes).\n\n### 2. Create a \".yarnrc\" file\n\nEnsure you have a \".yarnrc\" file in your package root declaring the desired commit message and tag format. For example, in a monorepo, you probably want to include the package name:\n\n```\nversion-tag-prefix \"liferay-fancy-package/v\"\nversion-git-message \"chore: prepare liferay-fancy-package/v%s\"\n```\n\nIn a single-package repo, something like this might be more appropriate:\n\n```\nversion-tag-prefix \"v\"\nversion-git-message \"chore: prepare v%s release\"\n```\n\nIf you don't have a \".yarnrc\" file, liferay-js-publish will warn you during publishing and require you to type \"y\" in order to continue.\n\n### 3. Add liferay-js-publish from a \"postversion\" script in your \"package.json\".\n\nAssuming you have a \"ci\" script that runs tests, you should call that in your \"preversion\" script as well:\n\n```\n{\n    \"scripts\": {\n      \"ci\": \"yarn lint && yarn format:check && yarn test\",\n      \"preversion\": \"yarn ci\"\n      \"postversion\": \"npx liferay-js-publish\"\n    }\n}\n```\n\nIf you don't have \"preversion\" and \"postversion\" scripts, liferay-js-publish will warn you during publishing and require you to type \"y\" in order to continue.\n\n## Usage\n\nPrepare and release a new version with `yarn version`\n\n```\n# Either:\nyarn version --patch # or --minor, or --major\n\n# Or:\nyarn version --new-version x.y.z\n```\n\n## Origins\n\nThis was [originally](https://github.com/liferay/liferay-npm-tools/commit/ce2db371cce6fb2fbfbe7795dfe8807cd682e959#diff-d5ba1d0718faa51781762ae13a1c1a4a) just a `publish.js` script in the root of [the liferay-npm-tools repository](https://github.com/liferay/liferay-npm-tools).\n\nSimilar to what we did with [liferay-changelog-generator](https://github.com/liferay/liferay-npm-tools/tree/master/packages/liferay-changelog-generator), we extracted it into an NPM package so that it could be used from other projects, such as [eslint-config-liferay](https://github.com/liferay/eslint-config-liferay). The intention for it is to be a very small script with (almost) no dependencies.\n\n## Example projects using liferay-js-publish\n\n-   [Alloy Editor](https://github.com/liferay/alloy-editor)\n-   [eslint-config-liferay](https://github.com/liferay/eslint-config-liferay)\n-   [liferay-ckeditor](https://github.com/liferay/liferay-ckeditor)\n-   [liferay-npm-tools](https://github.com/liferay/liferay-npm-tools)\n","private":false,"scripts":{"ci":"cd ../.. && yarn ci","test":"echo 'No tests currently defined for liferay-js-publish'","preversion":"yarn ci","postversion":"node bin/liferay-js-publish.js"},"_npmUser":{"name":"izaera","email":"izaera@gmx.es"},"repository":{"url":"https://github.com/liferay/liferay-npm-tools","type":"git","directory":"packages/liferay-js-publish"},"description":"Publishes an NPM package via \"yarn version\"","directories":{},"dependencies":{"cross-spawn":"7.0.1"},"_hasShrinkwrap":false,"readmeFilename":"README.md","_npmOperationalInternal":{"tmp":"tmp/liferay-js-publish_1.1.0-alpha.1_1585131025358_0.004204608822193645","host":"s3://npm-registry-packages"}},"1.1.0":{"name":"liferay-js-publish","version":"1.1.0","license":"BSD-3-Clause","_id":"liferay-js-publish@1.1.0","maintainers":[{"name":"brunobasto","email":"b.basto@gmail.com"},{"name":"bryceosterhaus","email":"bryceosterhaus@gmail.com"},{"name":"carloslancha","email":"carlitoslancha@gmail.com"},{"name":"diegonvs","email":"diegonascimentovirgiliodasilva@gmail.com"},{"name":"gagranta","email":"gagranta@gmail.com"},{"name":"izaera","email":"izaera@gmx.es"},{"name":"jbalsas","email":"jbalsas@gmail.com"},{"name":"jcastelain","email":"jcastelain@gmail.com"},{"name":"liferay","email":"continuous-integration@liferay.com"},{"name":"marko.cikos","email":"mcikos@gmail.com"},{"name":"matuzalemteles","email":"matuzalemteles@gmail.com"},{"name":"p2kmgcl","email":"contact@pablomolina.me"},{"name":"sandrodw3","email":"sandrochinea@gmail.com"},{"name":"wincent","email":"greg@hurrell.net"}],"homepage":"https://github.com/liferay/liferay-npm-tools/tree/master/packages/liferay-js-publish","bin":{"liferay-js-publish":"bin/liferay-js-publish.js"},"dist":{"shasum":"990f47927dec5450867b5bbd06fe96e2b9c77286","tarball":"https://registry.npmjs.org/liferay-js-publish/-/liferay-js-publish-1.1.0.tgz","fileCount":10,"integrity":"sha512-NrrEv6zazyKVb6+wnL+w1KhPB6925MD3DHx0F2QIzcgzacA2MrUOnrhlv+2ZowakgGLVQ7fJsA7XhRGWcvU2Fw==","signatures":[{"sig":"MEYCIQDeLVfoIi4YAUNKnuH4/Ww0JXMlrUmwmVhyhcYLhMR9dAIhAKpyUiYoMHPOxBWRHxon9ivgrIg/dk7844y8sb01qRBP","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":12433,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJefMJpCRA9TVsSAnZWagAAu34P/0yqxCxR4E33+gD9/NRM\nX5EkKs0qDDmc6l9N1t8dADyz3APZXlOO+mlwX3imxZCnEx6GR2AiqpD8FuGB\nOhgTQqCEy/4o0+I2kLt/8lRsYzDCCvLIBc6gmhAnNkQmDpFSOjf67PPf6TL1\nvMyBzXI2uk6MLVlB7tN1dvg8aPXbYOldPXmmU9vLGekseew8BIFlzJGzEceP\nh3X/vj5NPxGqtTGgR3UPfKqjN5tcRwMsp1dik9MHaaP3MXQaBNeFkDd2lNH8\nLsMGI8L+kSRSYvS8OO6zH9nUsvTbKRuLkjF3hgSlv8o4/VGh8oac4qkN1yd5\nmvvUT4hdOMdlGahNK6HUbnc5+nYG+WNtiNHFiSD0+saeJ/3Co60dmamfGH/T\ncJ2HWUCDxNhzFeL7hjeROUQW4kd71nyNPi8jSJHuEn0WVtuls52sfqhInoMI\nZi9/jJBm+fxIMMfxIc6sAgFV7IlqtR5QiCMbOjQ3mTvKcxfbRgHIoKt27bH7\nuTTLmBwQzTBKF+82vv22N6f0sDNohwSVRAuSRjX/wEuldlkm0efL9gmIGVcV\nvj/yCbOr+atEY2X/DGRJ6FIXmuedrC6CTl7RRB4RxqlOLjaUvuEPxqDJ5rvH\nsu5tGJhcavx8EqORM1Eo1cazt8dssxZuWJQ219M7g3SUVIOwO7H9mq0+lGxH\nPprS\r\n=rFPl\r\n-----END PGP SIGNATURE-----\r\n"},"main":"index.js","private":false,"scripts":{"ci":"cd ../.. && yarn ci","test":"echo 'No tests currently defined for liferay-js-publish'","preversion":"yarn ci","postversion":"node bin/liferay-js-publish.js"},"_npmUser":{"name":"izaera","email":"izaera@gmx.es"},"deprecated":"Please see @liferay/js-publish instead","repository":{"url":"https://github.com/liferay/liferay-npm-tools","type":"git","directory":"packages/liferay-js-publish"},"description":"Publishes an NPM package via \"yarn version\"","directories":{},"dependencies":{"cross-spawn":"7.0.1"},"_hasShrinkwrap":false,"_npmOperationalInternal":{"tmp":"tmp/liferay-js-publish_1.1.0_1585234536615_0.9033307615408124","host":"s3://npm-registry-packages"}}},"time":{"created":"2019-09-23T12:14:12.873Z","modified":"2026-09-07T13:19:23.511Z","1.0.0":"2019-09-23T12:14:12.974Z","1.0.1":"2019-09-23T13:07:41.904Z","1.1.0-alpha.1":"2020-03-25T10:10:25.531Z","1.1.0":"2020-03-26T14:55:36.776Z"},"license":"BSD-3-Clause","homepage":"https://github.com/liferay/liferay-npm-tools/tree/master/packages/liferay-js-publish","repository":{"url":"https://github.com/liferay/liferay-npm-tools","type":"git","directory":"packages/liferay-js-publish"},"description":"Publishes an NPM package via \"yarn version\"","maintainers":[{"email":"minuswrench@gmail.com","name":"pat270"},{"email":"continuous-integration@liferay.com","name":"liferay"},{"email":"gagranta@gmail.com","name":"gagranta"},{"email":"ivan.zaera@liferay.com","name":"izaera-lr"},{"email":"daniel.sanz@liferay.com","name":"daniel.sanz"},{"email":"antonio.ortega@liferay.com","name":"antonio-ortega"},{"email":"gabriel.lima@liferay.com","name":"limaagabriel"},{"email":"fortunato.maldonado@liferay.com","name":"fortunatom"},{"email":"miguelarroyoes@hotmail.com","name":"miguelarroyoes"}],"readme":"# liferay-js-publish\n\n> A script for publishing an NPM package via `yarn version`.\n\nSimplifying assumptions:\n\n-   You are working in a repository that uses Yarn\n-   You develop on the \"master\" branch and update \"stable\" whenever you do a release\n-   You publish using `yarn version`\n-   You are millennial (or pretend to be) and expect your tools to use emoji 😎\n\n## Set-up\n\n### 1. Preliminaries\n\nYou can skip installing `liferay-js-publish` and just use the latest version (ie. via `npx liferay-js-publish`).\n\n> It is safe to use liferay-js-publish as an implicit dependency because we control the package, we maintain all the projects that use the package, and we won't make any breaking changes (or at least, we won't make any undetected breaking changes).\n\nIf you _really_ want to install it, either:\n\n-   Install globally: `yarn global add liferay-js-publish`; or:\n-   Add to a project: `yarn add --dev liferay-js-publish`; or:\n\nBut note that this brings the cost of noise in the `package.json` and `yarn.lock`, and the need to update multiple projects every time we update `liferay-js-publish`.\n\n### 2. Create a \".yarnrc\" file\n\nEnsure you have a \".yarnrc\" file in your package root declaring the desired commit message and tag format. For example, in a monorepo, you probably want to include the package name:\n\n```\nversion-tag-prefix \"liferay-fancy-package/v\"\nversion-git-message \"chore: prepare liferay-fancy-package/v%s\"\n```\n\nIn a single-package repo, something like this might be more appropriate:\n\n```\nversion-tag-prefix \"v\"\nversion-git-message \"chore: prepare v%s release\"\n```\n\nIf you don't have a \".yarnrc\" file, liferay-js-publish will warn you during publishing and require you to type \"y\" in order to continue.\n\n### 3. Add liferay-js-publish from a \"postversion\" script in your \"package.json\".\n\nAssuming you have a \"ci\" script that runs tests, you should call that in your \"preversion\" script as well:\n\n```\n{\n    \"scripts\": {\n      \"ci\": \"yarn lint && yarn format:check && yarn test\",\n      \"preversion\": \"yarn ci\"\n      \"postversion\": \"npx liferay-js-publish\"\n    }\n}\n```\n\nIf you don't have \"preversion\" and \"postversion\" scripts, liferay-js-publish will warn you during publishing and require you to type \"y\" in order to continue.\n\n## Usage\n\nPrepare and release a new version with `yarn version`\n\n```\n# Either:\nyarn version --patch # or --minor, or --major\n\n# Or:\nyarn version --new-version x.y.z\n```\n\n## Origins\n\nThis was [originally](https://github.com/liferay/liferay-npm-tools/commit/ce2db371cce6fb2fbfbe7795dfe8807cd682e959#diff-d5ba1d0718faa51781762ae13a1c1a4a) just a `publish.js` script in the root of [the liferay-npm-tools repository](https://github.com/liferay/liferay-npm-tools).\n\nSimilar to what we did with [liferay-changelog-generator](https://github.com/liferay/liferay-npm-tools/tree/master/packages/liferay-changelog-generator), we extracted it into an NPM package so that it could be used from other projects, such as [eslint-config-liferay](https://github.com/liferay/eslint-config-liferay). The intention for it is to be a very small script with (almost) no dependencies.\n\n## Example projects using liferay-js-publish\n\n-   [Alloy Editor](https://github.com/liferay/alloy-editor)\n-   [eslint-config-liferay](https://github.com/liferay/eslint-config-liferay)\n-   [liferay-ckeditor](https://github.com/liferay/liferay-ckeditor)\n-   [liferay-js-themes-toolkit](https://github.com/liferay/liferay-js-themes-toolkit)\n-   [liferay-npm-tools](https://github.com/liferay/liferay-npm-tools)\n","readmeFilename":"README.md"}