{"_id":"@bluecargo/npm-publish","_rev":"5-32b4b2bbc6a3218f50765fe3758a09c0","name":"@bluecargo/npm-publish","dist-tags":{"latest":"2.0.3"},"versions":{"2.0.0":{"name":"@bluecargo/npm-publish","description":"Fast, easy publishing to NPM","version":"2.0.0","keywords":["github-action","npm","publish","version","bump"],"author":{"name":"bluecargo","url":"https://bluecargo.io"},"license":"MIT","homepage":"https://jstools.dev/npm-publish","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/npm-publish.git"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"npm-publish":"bin/npm-publish.js"},"scripts":{"clean":"shx rm -rf .nyc_output coverage lib dist","lint":"eslint src test","build":"npm run build:typescript && npm run build:ncc && npm run build:node_modules","build:typescript":"tsc --declaration","build:ncc":"ncc build src/action/index.ts --source-map --external semver","build:node_modules":"shx mkdir -p dist/node_modules && shx cp -r node_modules/semver dist/node_modules","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc -x test -x dist/sourcemap-register.js mocha","upgrade":"npm-check -u && npm audit fix","bump":"bump --tag --push --all && git tag -afm v1 v1 && git push --tags --force","release":"npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=16"},"devDependencies":{"@actions/core":"^1.2.6","@jsdevtools/chai-exec":"^2.1.1","@jsdevtools/eslint-config":"^1.1.4","@jsdevtools/version-bump-prompt":"^6.1.0","@types/chai":"^4.2.14","@types/command-line-args":"^5.0.0","@types/mocha":"^8.2.0","@types/node":"^14.14.19","@types/semver":"^7.3.4","@types/source-map-support":"^0.5.3","@zeit/ncc":"^0.22.3","chai":"^4.2.0","eslint":"^7.17.0","mocha":"^10.1.0","npm-check":"^6.0.1","nyc":"^15.1.0","shx":"^0.3.3","typescript":"^4.1.3"},"dependencies":{"@jsdevtools/ez-spawn":"^3.0.4","@jsdevtools/ono":"^7.1.3","command-line-args":"^5.1.1","semver":"^7.3.4"},"gitHead":"56bcf42209faf520989f6c7f87ff5dbe38549a41","bugs":{"url":"https://github.com/JS-DevTools/npm-publish/issues"},"_id":"@bluecargo/npm-publish@2.0.0","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-u9J8UDEMYRueSkPvXZRZ3bZ85hSMnRtkOAbQ4M8ssgiNzwIlY+O7fRGeRqOgiLmkP4FdB7ZWOyutBouGO9N6vQ==","shasum":"1678b0eebd0a0e90f0bfeb4ad0734b763763a703","tarball":"https://registry.npmjs.org/@bluecargo/npm-publish/-/npm-publish-2.0.0.tgz","fileCount":46,"unpackedSize":61203,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIBUooNCIS1A6SGQkuTon1dbdDV/huluPQafwlr0+sWrmAiBRl7q03+519siVWmGBu1D+ISYsmfOeTJsvRxMtv2+Efw=="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTyBgACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmrdOA//QafETl0LSMYF6BJ8Sfb1+aBpoQzBoXWUysrOKiy9kAi2LCDC\r\nVA/LCJWaMCmPoYiMZLxU7nfIS60fcYqCjmiGc592GtTisUpUOyJ39Hy2BRsj\r\n2CsqoJGEVPb0Ypxlg08rVHfd8NvFAYOdwqkFK7pzSkaeMX+fX0UZcLJVJ0JS\r\nW2thcRzaObhLF2Tn0yYEnc7MZACnGiMguAU7ZcqN6fo0EPlQgUD1X23ML9e4\r\n++2fBvDonTfKHZntM3Qfr8TG9Z291YTaJlmKAsBuKI/Xoso75yz0MxplurbY\r\nfsPQYsLZjqUCs03/e1+YbpVfc65cWUhO6jkVxOzN2bvWg+FK9+AmdHunCpaM\r\nPQVMw+wPhYFnMqf+VxD7eDH8hZnFDwlXB5uqw8gNScUgQtcgvVLMuJxS3UE1\r\nL+AZu18dMqdoxNp0MAdzlzBsXuJPwvNiPw+OmmffzdNlnFJQKmN8o/PUmETu\r\nSh0xPzmgvnT0Hsx+s6hw/3BkQHhc1lJIGSLdwQMzqDwJdlTZMQWZbt236fF4\r\nBi/FzsIVh01n4BcHSpSK2gYRjpa7URRzdqCLvWfBCaFUAgcDNeMOU5qnaL0A\r\nirrCZxePPyaU3/i1dH9hMbR80VJyT4i5eR1U+Xkc6nIyVVnDFZk41eZzEq+A\r\n306XKBTk8cllLijsuPBHVFPF/prEhpM3Lw4=\r\n=/13l\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bluecargo-admin","email":"admin@bluecargo.io"},"directories":{},"maintainers":[{"name":"bluecargo-admin","email":"admin@bluecargo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-publish_2.0.0_1666130016282_0.07432075564488394"},"_hasShrinkwrap":false},"2.0.1":{"name":"@bluecargo/npm-publish","description":"Fast, easy publishing to NPM","version":"2.0.1","keywords":["github-action","npm","publish","version","bump"],"author":{"name":"bluecargo","url":"https://bluecargo.io"},"license":"MIT","homepage":"https://jstools.dev/npm-publish","repository":{"type":"git","url":"git+https://github.com/JS-DevTools/npm-publish.git"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"npm-publish":"bin/npm-publish.js"},"scripts":{"clean":"shx rm -rf .nyc_output coverage lib dist","lint":"eslint src test","build":"npm run build:typescript && npm run build:ncc && npm run build:node_modules","build:typescript":"tsc --declaration","build:ncc":"ncc build src/action/index.ts --source-map --external semver","build:node_modules":"shx mkdir -p dist/node_modules && shx cp -r node_modules/semver dist/node_modules","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc -x test -x dist/sourcemap-register.js mocha","upgrade":"npm-check -u && npm audit fix","bump":"bump --tag --push --all && git tag -afm v1 v1 && git push --tags --force","release":"npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=16"},"devDependencies":{"@actions/core":"^1.2.6","@jsdevtools/chai-exec":"^2.1.1","@jsdevtools/eslint-config":"^1.1.4","@jsdevtools/version-bump-prompt":"^6.1.0","@types/chai":"^4.2.14","@types/command-line-args":"^5.0.0","@types/mocha":"^8.2.0","@types/node":"^14.14.19","@types/semver":"^7.3.4","@types/source-map-support":"^0.5.3","@zeit/ncc":"^0.22.3","chai":"^4.2.0","eslint":"^7.17.0","mocha":"^10.1.0","npm-check":"^6.0.1","nyc":"^15.1.0","shx":"^0.3.3","typescript":"^4.1.3"},"dependencies":{"@jsdevtools/ez-spawn":"^3.0.4","@jsdevtools/ono":"^7.1.3","command-line-args":"^5.1.1","semver":"^7.3.4"},"gitHead":"f44f5a86eb84d45ce00fcca02b6d4c41f17e0e4a","bugs":{"url":"https://github.com/JS-DevTools/npm-publish/issues"},"_id":"@bluecargo/npm-publish@2.0.1","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-P9Nd5mZSHRPNSTwYB1q8PkFAD7gaoGugwg2rWa83FQMcYr1VW3uSioyHd/oS7GbnweS1T7dKyOqe2v8ydpmLDw==","shasum":"90f8d17ee0c0941d28a92b7f955a29eac96becc0","tarball":"https://registry.npmjs.org/@bluecargo/npm-publish/-/npm-publish-2.0.1.tgz","fileCount":46,"unpackedSize":61203,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQD3AEbAH/aWeRfVVxHkbpR1gSb/4WklWdTz/mrvinriTgIhAPz6MRis1adnBP+RDo8G2NWtHvbawMtTXp97nP26UsxX"}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTyQMACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2Vmr8jw//W00fIzzH3Md8cfrHNzDe2K7lO/nep7F/PkZYpVpaqY5VDcjL\r\nazQOr5bM6pZFUnx/S5TbxFjevqTvopTWJZt4hcHdc6VEc+7V4IJzHugKpFT8\r\n+k7S7+jGk0h7TlrbbIwvDynG8czy5aLOmg04p1CzsYE8kPnIwvdcxubN70za\r\nZQz82QVBdtFwA5b1MyhJg26ZPNx5KTZD6Ibq+5Vene0KqJNmIUwadOC6e/X7\r\n+nnBCsFmSIdf3/BAtFQF1Gh0QQoKXt9zP7789FoZj4x0LRWIQ+ToQyiRcHbI\r\nj7RncsIUsrir3zXsMYQ6r1wGezdgJAvYfBS4pvpWNgJ+MZuAGPpIk95tF6Dt\r\nlhg3m+prJqc8M4PY09QwdPH2CtWI2Qp/PAP5YGSeKk5JAR7VDpd9DBBJTFTJ\r\nxvOQsm7U9W9JuqQgzzN4Nhd7CSIU6FQlvvTy8LelkwYK7NnsLjaVNcsoALR1\r\nTjzTf/hl4zC6AGSPzAP78GIY/kRcqOB+cWtUhQOuXSENKPJJccHbrPpaScce\r\nnooFentZm4OPInlPARrtruf6AzV+99grqoMFfAncCOcw6tB7Zq0X4UudiR7V\r\nXGg5CTWaWzTYuGaUTC1yoOIrgKVX/h6NMXbAOiQYEYa9FhZkklZ0i3vEQELB\r\nSNlqaFPh+dBh9RmubemBVgfGIYjvYLTkSSQ=\r\n=5MFR\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bluecargo-admin","email":"admin@bluecargo.io"},"directories":{},"maintainers":[{"name":"bluecargo-admin","email":"admin@bluecargo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-publish_2.0.1_1666130956181_0.5641458577396219"},"_hasShrinkwrap":false},"2.0.2":{"name":"@bluecargo/npm-publish","description":"Fast, easy publishing to NPM","version":"2.0.2","keywords":["github-action","npm","publish","version","bump"],"author":{"name":"bluecargo","url":"https://bluecargo.io"},"license":"MIT","homepage":"https://jstools.dev/npm-publish","repository":{"type":"git","url":"git+https://github.com/bluecargo/npm-publish.git"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"npm-publish":"bin/npm-publish.js"},"scripts":{"clean":"shx rm -rf .nyc_output coverage lib dist","lint":"eslint src test","build":"npm run build:typescript && npm run build:ncc && npm run build:node_modules","build:typescript":"tsc --declaration","build:ncc":"ncc build src/action/index.ts --source-map --external semver","build:node_modules":"shx mkdir -p dist/node_modules && shx cp -r node_modules/semver dist/node_modules","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc -x test -x dist/sourcemap-register.js mocha","upgrade":"npm-check -u && npm audit fix","bump":"bump --tag --push --all && git tag -afm v1 v1 && git push --tags --force","release":"npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=16"},"devDependencies":{"@actions/core":"^1.2.6","@jsdevtools/chai-exec":"^2.1.1","@jsdevtools/eslint-config":"^1.1.4","@jsdevtools/version-bump-prompt":"^6.1.0","@types/chai":"^4.2.14","@types/command-line-args":"^5.0.0","@types/mocha":"^8.2.0","@types/node":"^14.14.19","@types/semver":"^7.3.4","@types/source-map-support":"^0.5.3","@zeit/ncc":"^0.22.3","chai":"^4.2.0","eslint":"^7.17.0","mocha":"^10.1.0","npm-check":"^6.0.1","nyc":"^15.1.0","shx":"^0.3.3","typescript":"^4.1.3"},"dependencies":{"@jsdevtools/ez-spawn":"^3.0.4","@jsdevtools/ono":"^7.1.3","command-line-args":"^5.1.1","semver":"^7.3.4"},"gitHead":"460607489cab22841696e500d41e1c388ce757a0","bugs":{"url":"https://github.com/bluecargo/npm-publish/issues"},"_id":"@bluecargo/npm-publish@2.0.2","_nodeVersion":"16.17.1","_npmVersion":"8.15.0","dist":{"integrity":"sha512-5IuAltsn7OihRXXVelAwW/1th7JqJ5AkmQLtpsCC+HBMOf15O0tc0BomNkNsLp/iJk8JclIugNNk0A0N940TOQ==","shasum":"02549d13739122fa3c324c0eea7199f81798def8","tarball":"https://registry.npmjs.org/@bluecargo/npm-publish/-/npm-publish-2.0.2.tgz","fileCount":46,"unpackedSize":61197,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCZ0kiOChKv/n7OWBPJyvru5B4/wmO4LZKayMactOuS0AIgSwLotvx7/pwtpokcKlSyeuSaJdwa/OijA4zsgJsOgng="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTyYuACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqzqA/9EY7XMUawLE/PK6JEAdafhj6q+aQXeQ6lmiG/JgDO3WE+imtv\r\ngCcJfQJ79ksL7J+pZnlK33UA3khWZBhJVMW3K65LDOZ+Ce1k/AY/rJdXsnWl\r\nDaUN5BWx6dpmO22s5gQ6S0lJQOS4vm9n/7wqK/In9juavxc6Nuud11T9Sd7+\r\n0EfMQ8PXA+Dg+k7KWfV0sbaRslVfiEtF7dOGJ5/kvl1hcd/2iFFMEaOjSFH5\r\n5o68Sifp3NaXElaq6BkOSySQ1YczebD5ucxyD0rczQTIZ7EA++6dtvfTGnej\r\nZynSKgNFmkHzZeAktEbwWETryN4+gD8VsCcv9rk5/zlbW1lvet+0gqrTZ59u\r\n0s+PCMxFu1eBXlJNMHOCSkoJkG4XoE8d6S5DMy8ZsGVeA4EReJg0SvrDsvvU\r\n+FZD/KR2GQ+dCxuyy05rtgVhOsNYQM+PJ4n/anmMAmAXuPHAGLUrDZ2ztdtS\r\nZFUp1hmdKXmOWPQWtvINhdtYPT4s9c/XaKD2aubw+1EOygUVDXDZ3oBXw84M\r\nW+qT07Zm8eVNfi5kRCOPZnDJ4T1mjBBO/CqqfQ3nNFO/xZUsNE0qf53o7ux0\r\nJFfDYaW9zdBXoRVtGk0jacwoxTJ/B1lptq6bFfkqBTE3aJGRXXsR8OrUG715\r\ng1iwjnA0uJ7ahepIl8CplEpSmE2ckBsnQCo=\r\n=gdPT\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bluecargo-admin","email":"admin@bluecargo.io"},"directories":{},"maintainers":[{"name":"bluecargo-admin","email":"admin@bluecargo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-publish_2.0.2_1666131502700_0.7941983934021806"},"_hasShrinkwrap":false},"2.0.3":{"name":"@bluecargo/npm-publish","description":"Fast, easy publishing to NPM","version":"2.0.3","keywords":["github-action","npm","publish","version","bump"],"author":{"name":"bluecargo","url":"https://bluecargo.io"},"license":"MIT","homepage":"https://jstools.dev/npm-publish","repository":{"type":"git","url":"git+https://github.com/bluecargo/npm-publish.git"},"main":"lib/index.js","types":"lib/index.d.ts","bin":{"npm-publish":"bin/npm-publish.js"},"scripts":{"clean":"shx rm -rf .nyc_output coverage lib dist","lint":"eslint src test","build":"npm run build:typescript && npm run build:ncc && npm run build:node_modules","build:typescript":"tsc --declaration","build:ncc":"ncc build src/action/index.ts --source-map --external semver","build:node_modules":"shx mkdir -p dist/node_modules && shx cp -r node_modules/semver dist/node_modules","watch":"tsc --watch","test":"mocha && npm run lint","coverage":"nyc -x test -x dist/sourcemap-register.js mocha","upgrade":"npm-check -u && npm audit fix","bump":"bump --tag --push --all && git tag -afm v1 v1 && git push --tags --force","release":"npm run clean && npm run build && npm test && npm run bump"},"engines":{"node":">=16"},"devDependencies":{"@actions/core":"^1.2.6","@jsdevtools/chai-exec":"^2.1.1","@jsdevtools/eslint-config":"^1.1.4","@jsdevtools/version-bump-prompt":"^6.1.0","@types/chai":"^4.2.14","@types/command-line-args":"^5.0.0","@types/mocha":"^8.2.0","@types/node":"^14.14.19","@types/semver":"^7.3.4","@types/source-map-support":"^0.5.3","@zeit/ncc":"^0.22.3","chai":"^4.2.0","eslint":"^7.17.0","mocha":"^10.1.0","npm-check":"^6.0.1","nyc":"^15.1.0","shx":"^0.3.3","typescript":"^4.1.3"},"dependencies":{"@jsdevtools/ez-spawn":"^3.0.4","@jsdevtools/ono":"^7.1.3","command-line-args":"^5.1.1","semver":"^7.3.4"},"gitHead":"4750fc90f663a59b3bc7dd16a5e65f16246bc992","bugs":{"url":"https://github.com/bluecargo/npm-publish/issues"},"_id":"@bluecargo/npm-publish@2.0.3","_nodeVersion":"16.18.0","_npmVersion":"8.19.2","dist":{"integrity":"sha512-CMwDJVcDjMajb3Y3w/uy7rPzXDQ65XKlhA8JYijH6OOVIL1U0Xo/KXsPhtK2iG5QnXbUb6CUEhzlvJ35jIhsPw==","shasum":"ee9458c34b11685460f8c8c9d0b6ad1582f40053","tarball":"https://registry.npmjs.org/@bluecargo/npm-publish/-/npm-publish-2.0.3.tgz","fileCount":46,"unpackedSize":61191,"signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAyfvuNx3jJTU9uoH0WBqkkHCpR5cr/ZPUQ4EsPUUbyPAiEA0FlqQvGdsXrrZSQDqV38CLj73VZUJEDhVRNTiWdpG5U="}],"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v4.10.10\r\nComment: https://openpgpjs.org\r\n\r\nwsFzBAEBCAAGBQJjTylWACEJED1NWxICdlZqFiEECWMYAoorWMhJKdjhPU1b\r\nEgJ2VmqjGRAAjPkoS8VjCqZX59zbzrkqn7dG85koJJRUbcHwC0rm2pum6zHy\r\nO9WDyAVg6lxgZ6NlfxjvAwtOLBiB6Dx6HgoV6BufaUDINqa6BSTz11FG0f2p\r\nn23UJgDiR/sOgnOp2SIF4ADQASCP21Wesdf4KFikT/SRb+TRs5XQbKC1FsAU\r\nCF/8h9zkpQdBN8iw0WXRSwDSF3w75tVEpZojKVPwzF9+062iftmOLQTF+8+p\r\ncFPKvnjr9JIFQi6BTjPvgPZkakndIfaqkCoJuD9XS51J2NKfh+bcGgkufPEv\r\nWEzJOia6iMN4vNAzJaE8g6b8emLUNJ+Gdgg2KlY6w+halnjUycMVxKzyjeHV\r\nLsx41YI95U6tGuYQpbNjq1al8YFShj4nVsjPUZvP3OLlqm+2EmfaVx+ANROC\r\nuW+z0cb+g5P5nRubQSQxamFBCxMU6808X2BhDeGJKtQLc4pIoqm8kZi0zna6\r\nCL0nvbX+/OdP0FjSKAsdgnsUOJDhCwMPBAkMs1zvvM3R0O61NuABtTB8641t\r\nFoscNQgXl9WTpjZ4dGkE42MyqycDoOKT6TgSTCccy28yZ6TVbB5QdDVsjXTj\r\nUL3NsIAelpOu8M5tMTO24Ubm7ic6WNLpwta+xiMH4I4+hbCSqzz+iuHbHyyT\r\n1W/QX36ac+PjwZtP05W5+FQUCUxlpy0HS3g=\r\n=ug1z\r\n-----END PGP SIGNATURE-----\r\n"},"_npmUser":{"name":"bluecargo-admin","email":"admin@bluecargo.io"},"directories":{},"maintainers":[{"name":"bluecargo-admin","email":"admin@bluecargo.io"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/npm-publish_2.0.3_1666132310604_0.49950844506684167"},"_hasShrinkwrap":false}},"time":{"created":"2022-10-18T21:53:36.280Z","2.0.0":"2022-10-18T21:53:36.565Z","modified":"2022-11-01T20:56:32.999Z","2.0.1":"2022-10-18T22:09:16.395Z","2.0.2":"2022-10-18T22:18:22.904Z","2.0.3":"2022-10-18T22:31:50.802Z"},"maintainers":[{"email":"nuclear.ace@gmail.com","name":"nuclearace"},{"email":"admin@bluecargo.io","name":"bluecargo-admin"}],"description":"Fast, easy publishing to NPM","homepage":"https://jstools.dev/npm-publish","keywords":["github-action","npm","publish","version","bump"],"repository":{"type":"git","url":"git+https://github.com/bluecargo/npm-publish.git"},"author":{"name":"bluecargo","url":"https://bluecargo.io"},"bugs":{"url":"https://github.com/bluecargo/npm-publish/issues"},"license":"MIT","readme":"# Fast, easy publishing to NPM\n\n[![Cross-Platform Compatibility](https://jstools.dev/img/badges/os-badges.svg)](https://github.com/JS-DevTools/npm-publish/actions)\n[![Build Status](https://github.com/bluecargo/npm-publish/workflows/CI-CD/badge.svg)](https://github.com/bluecargo/npm-publish/actions)\n\n[![Coverage Status](https://coveralls.io/repos/github/JS-DevTools/npm-publish/badge.svg?branch=master)](https://coveralls.io/github/JS-DevTools/npm-publish)\n[![Dependencies](https://david-dm.org/JS-DevTools/npm-publish/status.svg)](https://david-dm.org/JS-DevTools/npm-publish)\n\n[![npm](https://img.shields.io/npm/v/@jsdevtools/npm-publish.svg)](https://www.npmjs.com/package/@jsdevtools/npm-publish)\n[![License](https://img.shields.io/npm/l/@jsdevtools/npm-publish.svg)](LICENSE)\n[![Buy us a tree](https://img.shields.io/badge/Treeware-%F0%9F%8C%B3-lightgreen)](https://plant.treeware.earth/JS-DevTools/npm-publish)\n\n## Features\n\n- 🧠 **Smart**<br>\n  Only publishes if the version number in `package.json` differs from the latest on NPM\n\n- 🛠 **Configurable**<br>\n  Customize the version-checking behavior, the registry URL, and path of your package\n\n- 🔐 **Secure**<br>\n  Keeps your NPM access token secret. Doesn't write it to `~/.npmrc`\n\n- ⚡ **Fast**<br>\n  100% JavaScript (which is faster than Docker) and bundled to optimize loading time\n\n- 📤 **Outputs**<br>\n  Exposes the old and new version numbers, and the type of change (major, minor, patch, etc.) as variables that you can use in your workflow.\n\n## Usage\n\nThis package can be used three different ways:\n\n- 🤖 A [**GitHub Action**](#github-action) as part of your CI/CD process\n\n- 🧩 A [**function**](#javascript-function) that you call in your JavaScript code\n\n- 🖥 A [**CLI**](#command-line-interface) that you run in your terminal\n\n## GitHub Action\n\nTo use the GitHub Action, you'll need to add it as a step in your [Workflow file](https://help.github.com/en/actions/automating-your-workflow-with-github-actions). By default, the only thing you need to do is set the `token` parameter to your [NPM auth token](https://docs.npmjs.com/creating-and-viewing-authentication-tokens).\n\n```yaml\non: push\n\njobs:\n  publish:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v3\n      - uses: actions/setup-node@v3\n        with:\n          node-version: 12\n      - run: npm install\n      - run: npm test\n      - uses: bluecargo/npm-publish@v2\n        with:\n          token: ${{ secrets.NPM_TOKEN }}\n```\n\n## Input Parameters\n\nYou can set any or all of the following input parameters:\n\n|Name                  |Type     |Default                     |Description\n|----------------------|-------- |----------------------------|------------------------------------\n|`token`               |string   |**required**                |The NPM auth token to use for publishing\n|`registry`            |string   |https://registry.npmjs.org/ |The NPM registry URL to use\n|`package`             |string   |./package.json              |The path of your package.json file\n|`tag`                 |string   |\"latest\"                    |The tag to publish to. This allows people to install the package using `npm install <package-name>@<tag>`.\n|`access`              |string   |\"public\" for non-scoped packages. \"restricted\" for scoped packages.|Determines whether the published package should be publicly visible, or restricted to members of your NPM organization.\n|`dry-run`             |boolean  |false                       |Run NPM publish with the `--dry-run` flag to prevent publication\n|`check-version`       |boolean  |true                        |Only publish to NPM if the version number in `package.json` differs from the latest on NPM\n|`greater-version-only`|boolean  |false                       |Only publish to NPM if the version number in `package.json` is greater than the latest on NPM                           |\n\n\n## Output Variables\n\nnpm-publish writes env variables, which you can use in later steps of your workflow. \n\n```yaml\nsteps:\n  - id: publish\n    uses: bluecargo/npm-publish@v2\n    with:\n      token: ${{ secrets.NPM_TOKEN }}\n\n  - run: |\n      echo \"Version changed: ${{ env.old-version }} => ${{ env.version }}\"\n```\n\n| Variable      | Type    | Description                                                                                                                                                                                                                 |\n| ------------- | ------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `type`        | string  | The type of version change that occurred (\"major\", \"minor\", \"patch\", etc.). If there was no version change, then type will be \"none\". If `greater-version-only` is set and the version is lower, then type will be \"lower\". |\n| `version`     | string  | The version that was published                                                                                                                                                                                              |\n| `old-version` | string  | The version number that was previously published to NPM                                                                                                                                                                     |\n| `tag`         | string  | The tag that the package was published to.                                                                                                                                                                                  |\n| `access`      | string  | Indicates whether the published package is publicly visible or restricted to members of your NPM organization.                                                                                                              |\n| `dry-run`     | boolean | Indicates whether NPM was run in \"dry run\" mode                                                                                                                                                                             |\n\n## JavaScript Function\n\nTo use npm-package in your JavaScript code, you'll need to install it using [NPM](https://docs.npmjs.com/about-npm/):\n\n```bash\nnpm install @jsdevtools/npm-publish\n```\n\nYou can then import it and use it in your code like this:\n\n```javascript\nconst npmPublish = require(\"@jsdevtools/npm-publish\");\n\n// Run npm-publish with all defaults\nawait npmPublish();\n\n// Run npm-publish with options\nawait npmPublish({\n  package: \"./path/to/package.json\",\n  token: \"YOUR_NPM_AUTH_TOKEN_HERE\",\n});\n```\n\n### Options\n\nAs shown in the example above, you can pass options to the `npmPublish()` function. Here are the available options:\n\n| Name                 | Type     | Default                                                             | Description                                                                                                                                                                  |\n| -------------------- | -------- | ------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `token`              | string   | NPM's default credentials                                           | The NPM auth token to use for publishing. If not set, then NPM will                                                                                                          |\n| `registry`           | string   | https://registry.npmjs.org/                                         | The NPM registry URL to use                                                                                                                                                  |\n| `package`            | string   | ./package.json                                                      | The path of your package.json file                                                                                                                                           |\n| `tag`                | string   | \"latest\"                                                            | The tag to publish to. This allows people to install the package using `npm install <package-name>@<tag>`.                                                                   |\n| `access`             | string   | \"public\" for non-scoped packages. \"restricted\" for scoped packages. | Determines whether the published package should be publicly visible, or restricted to members of your NPM organization.                                                      |\n| `dryRun`             | boolean  | false                                                               | Run NPM publish with the `--dry-run` flag to prevent publication                                                                                                             |\n| `checkVersion`       | boolean  | true                                                                | Only publish to NPM if the version number in `package.json` differs from the latest on NPM                                                                                   |\n| `greaterVersionOnly` | boolean  | false                                                               | Only publish to NPM if the version number in `package.json` is greater then the latest on NPM                                                                                |\n| `quiet`              | boolean  | false                                                               | Suppress console output from NPM and npm-publish                                                                                                                             |\n| `debug`              | function | no-op                                                               | A function to log debug messages. You can set this to a custom function to receive debug messages, or just set it to `console.debug` to print debug messages to the console. |\n\n### Return Value\n\nThe `npmPublish()` function asynchronously returns an object with the following properties:\n\n| Name         | Type    | Description                                                                                                                                                                                                                   |\n| ------------ | ------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |\n| `type`       | string  | The type of version change that occurred (\"major\", \"minor\", \"patch\", etc.) If there was no version change, then the the type is \"none\". If `greater-version-only` is set and the version is lower, then type will be \"lower\". |\n| `package`    | string  | The name of the NPM package that was published                                                                                                                                                                                |\n| `version`    | string  | The version number that was published                                                                                                                                                                                         |\n| `oldVersion` | string  | The version number that was previously published to NPM                                                                                                                                                                       |\n| `tag`        | string  | The tag that the package was published to.                                                                                                                                                                                    |\n| `access`     | string  | Indicates whether the published package is publicly visible or restricted to members of your NPM organization.                                                                                                                |\n| `dryRun`     | boolean | Indicates whether NPM was run in \"dry run\" mode                                                                                                                                                                               |\n\n## Command Line Interface\n\nTo use npm-package from as a command-line tool in your terminal, you'll need to install it globally using [NPM](https://docs.npmjs.com/about-npm/):\n\n```bash\nnpm install -g @jsdevtools/npm-publish\n```\n\nYou can then use it in your terminal or in Bash scripts. You can call it without any arguments, and it will publish the current directory using NPM's default credentials.\n\n```bash\nnpm-publish\n```\n\nOr you can call it with arguments to explicitly set the NPM auth token, registry, package path, etc.\n\n```bash\nnpm-publish --token=YOUR_NPM_AUTH_TOKEN_HERE ./path/to/package.json\n```\n\n### Options\n\nRun `npm-publish --help` to see the full list of options available.\n\n```\n> npm-publish --help\n\nUsage: npm-publish [options] [package_path]\n\noptions:\n  --token <token>     The NPM access token to use when publishing\n\n  --registry <url>    The NPM registry URL to use\n\n  --tag <tag>         The tag to publish to. Allows the package to be installed\n                      using \"npm install <package-name>@<tag>\"\n\n  --access <access>   \"public\" = The package will be publicly visible.\n                      \"restricted\" = The package will only be visible to members\n                      of your NPM organization.\n\n  --dry-run           Don't actually publish to NPM, but report what would have\n                      been published\n\n  --debug, -d         Enable debug mode, with increased logging\n\n  --quiet, -q         Suppress unnecessary output\n\n  --version, -v       Print the version number\n\n  --help, -h          Show help\n\npackage_path          The absolute or relative path of the NPM package to publish.\n                      Can be a directory path, or the path of a package.json file.\n                      Defaults to the current directory.\n```\n\n## Contributing\n\nContributions, enhancements, and bug-fixes are welcome! [Open an issue](https://github.com/JS-DevTools/npm-publish/issues) on GitHub and [submit a pull request](https://github.com/JS-DevTools/npm-publish/pulls).\n\n#### Building\n\nTo build the project locally on your computer:\n\n1. **Clone this repo**<br>\n   `git clone https://github.com/bluecargo/npm-publish.git`\n\n2. **Install dependencies**<br>\n   `npm install`\n\n3. **Build the code**<br>\n   `npm run build`\n\n4. **Run the tests**<br>\n   `npm test`\n\n## License\n\nnpm-publish is 100% free and open-source, under the [MIT license](LICENSE). Use it however you want.\n\nThis package is [Treeware](http://treeware.earth). If you use it in production, then we ask that you [**buy the world a tree**](https://plant.treeware.earth/JS-DevTools/npm-publish) to thank us for our work. By contributing to the Treeware forest you’ll be creating employment for local families and restoring wildlife habitats.\n\n## Big Thanks To\n\nThanks to these awesome companies for their support of Open Source developers ❤\n\n[![GitHub](https://jstools.dev/img/badges/github.svg)](https://github.com/open-source)\n[![NPM](https://jstools.dev/img/badges/npm.svg)](https://www.npmjs.com/)\n[![Coveralls](https://jstools.dev/img/badges/coveralls.svg)](https://coveralls.io)\n[![Travis CI](https://jstools.dev/img/badges/travis-ci.svg)](https://travis-ci.com)\n[![SauceLabs](https://jstools.dev/img/badges/sauce-labs.svg)](https://saucelabs.com)\n","readmeFilename":"README.md"}