{"_id":"@pika/publish","_rev":"5-c4280ece7d1aa6f72fb79b26cf705f4b","name":"@pika/publish","dist-tags":{"latest":"0.1.4"},"versions":{"0.1.0":{"name":"@pika/publish","version":"0.1.0","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.0","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"integrity":"sha512-SviCUimAbeKBVbRKlYU8sCEiYXpYtqcU8kTzZOYWQfDSM1JhfbY+HP+YUoIMaZz4o9wFmv/LRunCqhHjk5AugA==","shasum":"8c065284f0d761e3ff50d43bd8c5d103e39da382","tarball":"https://registry.npmjs.org/@pika/publish/-/publish-0.1.0.tgz","fileCount":13,"unpackedSize":25261,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOvSOCRA9TVsSAnZWagAAYO8P/iLEbsA/deWGlk2sqsPJ\nIdkC/299Qvj2e0aC+APRTydei11ZJHErzJBw6moFkBhL4dgaAHQpL72iWjnH\nX+v9zirQSSz58ldhCd9cKIwOMccAbx95MGG87U767Kfi7v+Ya+rcx8XqFYET\nBrTQDNMO9NP3niuU6Y6inxOFmF7uVU3dk07sP5Q+8sCwuVVy68Z/w6pfSQ9F\n+v+9qRRiuchfHp/RRoetu4giGUAzPQGKPd0/g/M5LxmuLWXLxhVFo9vNNval\nWT6Ay+Vm7S0G4UUDs7OPdrwup9D6FkczzjaTJ4LabkIhPDdKAOvG7NLtHsBS\nwURTil/eV2p28C6DvaXCxSVuK9dAP92i9EE15MOdHQ6T8YRtG50GLU0qYS0h\nZdVUjHDcV8oWqQlpBc3ST7xLnl+r4atJgyaK1rO8KD1l7P1XLvk1XsvVxhLw\nv0FW/7J/HICg/35e5vG7abjuFuqnLpx4SJJg6qFaoCqW43nOWZ+bCS9wXa+u\nAhKPRVBOhyKdxQ4YTLzB61n+6NWb6q4f+PefrWXeINDSRrjXiQvVFo+Ni2G3\nindxRa3QhbgsYITSnecrFZXs91YgtuBHHnNxr2z3YTBY2Dg5cwO2P9V+zW0R\nzWSuDI86H7YDd+AwTKazpjxe1pedzpSUMBgEJAADtjifTzSY9BneIeIGled1\nLqC9\r\n=EAAP\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEYCIQDH/uDb5Ui83jlcp4wUkDC9ULJauDYdJgfLrywjwc8GgAIhAJWEAI2mO85qPnOaQftqhxr1EfvUfdO721WL5Wp5/YWV"}]},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.0_1547367565684_0.9339395031736053"},"_hasShrinkwrap":false},"0.1.1":{"name":"@pika/publish","version":"0.1.1","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.1","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"integrity":"sha512-i3DiQApM7JL599mFcA4yUi0H6GLsP1AGoHe56c2Rnyo8UB03Lbsq2CDnxuC9q9e9mxrgVBBIIBJ5y9ipwSitrw==","shasum":"565bf90a101ece926f4d5fb733eaedd365eadb56","tarball":"https://registry.npmjs.org/@pika/publish/-/publish-0.1.1.tgz","fileCount":14,"unpackedSize":30103,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOvVWCRA9TVsSAnZWagAAAE4P/iqSj5deN2jjCNd5kSaX\nC58enqwAxdoV+65m8PdE20ZrFa8sN48JxlZnzny51E+4am8Swl73vRq0h7X6\nfziA/USf+uKiQfWIZzZFY+OhNeMlAv3UG01FO8LK9xL9Klg2U8InCt6EIxW3\nAiEDkV9WYxG5vfbrAA+yhBWoavFZXZMatUUXFZlPKsx34lrl1sLUJs2EH8kD\n9tIGPL9l2ZMk6BusrQCxw05ELVCoKjKoWGqbqTdZMgdXkC4M8XEwqq6af+8F\nS7x7YlUgkNrhv7A21+84pNyRzQTR/oqR6D1JUWxzyIRgKyN+cWWbsLe3DS7A\n6GhHsmAHh02veGkDEyBB2wojBQHOXex4k044k3nVEexrbd8srVSr7jP2YFuB\nsvtyZ1apzgcjCYz5lcD9SGOX4APsW5ZevzVSJ17WTMATkZDF3u+hGEeT1Pzt\nPrASne5ivsD7PliE4r+6OzxjjNcjtAUslDn5E/J9mwF+KsVA6a53W526+JJY\nIaMjETBrArxdSVn/HKwVcIuvAAVWqQ5Nf58CwVuUKTOEQ8XPKgBIlD9/q1cL\nLKRhP05FyWPDdfjyJ9KusaLQRPhqFVuL3mZcM3/v5HkrFR5j4DhCc2Ek0ydA\nDFhclzktwRXFvLo3r+dieI/X0A1AqBRfuP0NXf0AIeKLmUW5ZW6WpncV7ZJY\n1YtL\r\n=JtbR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIAoQ0TUvwtuGdEs9Jj8BlZthzaq2o8oZv8KnlOzNJsOXAiEA9yFHckZu7X3O7HX6fzGfy7oU+7eb4wt9+dIPiSZcZpU="}]},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.1_1547367765924_0.02661784993662386"},"_hasShrinkwrap":false},"0.1.2":{"name":"@pika/publish","version":"0.1.2","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.2","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"integrity":"sha512-ovkADXYgsc7sT+U0xBFdzCmgyRU3tEXblVIEJ3aI0BTDNKZxaP4zlnYKZAXVf7rgehw0fx/3BGgPJ4rpHwKH9w==","shasum":"eb1d17d9ca6b935ab17127cc7f0f086516c8cc48","tarball":"https://registry.npmjs.org/@pika/publish/-/publish-0.1.2.tgz","fileCount":14,"unpackedSize":30091,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOvZuCRA9TVsSAnZWagAAdR4P/RhB7FFn2OGM92GEN6hn\n7LVgGiMphXa+oE/0oxaeXHxnn28pSgzCSAmdymjfqM6QZXv1GA1JwbAFma95\nfNq3Z3GE3vHv3J/JOR+6jj6AP1wmGYX3som8b86t/cK/Gq+XFhPWSKHOqkGi\nKq5IC2QUd0Ih/mV1REB9t3dWELSNRAEPzouA6IRGmH0nB12j0zZBnjy22sk0\nvv6W1BEB68rvyCROOHHPKrzZ4xba4KfxCUU3fXX0YQ1v1DOzvrg9oeFqT6da\nZX+oYvMPbP4j+SO2OzLcVgL0HwLpzXTnxgzDSJqNOVoWqnKhZW2wKBZLP3u/\nrqIr2KEvJ59LPYAPqf+xZqjhPTVuV6BRycujLZJQSh8DNKELmULeoqOMv/Ww\nOFKXh1L9fEMZRTooo7E/YcYOE0sW4FwyVCrhedlCspj/D5/UVcKDAiGxS9SP\nv2yKegPU+BcqomC9V3/PrHowt4IDZ458L2nm9TVHYzn5/13xYA2B+n368v1A\n0A4E3BkVM2BxzGtoCDmglQa+8oqe8Mz2lfz2Fy6Tm1024elwRXisIcmhGCNe\nKHH2tF8Oveawt1dba0uOdKq1jueO+8DPJKbZg0dnY6hh0N/+WsQ5SWyj28mI\n87yx8G6+V9Pibs+QtK1bCqNK9Z1ekP8sVrVnEgMX0Rv4s9631HG+qQmH6Noe\nxgXi\r\n=e7fS\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQCAc9Esuz8CRDoTlbVjCgiiBHmVg6rsT2ZAHVo8Qc2aMAIgdwvTZKYQRAUadRAg8Nsbcd5usp2/10z2rBxCcbK9O3g="}]},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.2_1547368046308_0.49208819220606803"},"_hasShrinkwrap":false},"0.1.3":{"name":"@pika/publish","version":"0.1.3","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.3","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"integrity":"sha512-5TJi+T45Oti3h1ljRUJCfwfTtp3tGOj5f7Kf/7D3UV1yrAJe6nW/rWMng4BdqaolKdKekLbzDE/n2xG5f63ajw==","shasum":"14ab0b1d099e048c6044984877de7e1b84c22ae6","tarball":"https://registry.npmjs.org/@pika/publish/-/publish-0.1.3.tgz","fileCount":14,"unpackedSize":30342,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOvsOCRA9TVsSAnZWagAAm74P/1qX6HqRlmF0OwNTxOqZ\nOlGNjiz66NjDBZcGsb5iuddJQy5JK+C0f/CCML9x+HIWmdcok5Dsyh916aiP\nM6IM6gwCo9oEqeMnNFgREQwiv2j6z+rszNcY3Ef6kyo45g8KUUOFOxdLe5lK\n9ljsNauXDVPJB0HfWI6NB1fd9DpTegJWwih5mPqcTyWXng0NkqZumW9Ud0nT\nCfIIA+foHI/TGsgoQdydkLaZmfIGG5MT46FdLTTA8g4PB1EgmO4f+mkVI9GD\nGO+HrHmumfaI18Bwu4++2TmoLlfIPhxhqznh/585i73mL+1uerl+E+kd7+Bc\nhDgLXDJPiPgL9NLNdIABxcnjtOUih72/Tz1tg3S5c32N0QJyknFeqS7urkBH\njYsFZFZTHM1iOIzeeYtegHlxUJ78HIRHBDsVgzUHN9Hz7XkhjyU7QQwpRdWY\nCCLNzAa6qDSg4xbaY9QGKJXeyIPvSEvT0lm5iEz1b11p0ozAEHIaw8woUArM\nM26+iw8BP4ZnX/DD+wRW8ZzfznbUXuItDNPpvMFML+i3h4Ft/sTCWSDVqOJa\nT0ltDabxbfluPlERfA+xW7Fw/mpfZujplh+7jGzUAhCjh9rU6O5VCm1uOMgo\nBuJRUvOAMESmRKAovPhV9dJdYk6KVk7atBLl2yrLk6l/FqqX9SG5enFS+r62\nB8sG\r\n=lsnD\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEnEWGTovqS+kYjtppjxsYJeWxWTlJJSfDCF+BgG9/s1AiEAhQVL6fUf7eti6Jk+G+PjO73HAa4u6UgJvtZQV6hD468="}]},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.3_1547369229985_0.6139033789364878"},"_hasShrinkwrap":false},"0.1.4":{"name":"@pika/publish","version":"0.1.4","description":"Publish with pika","license":"MIT","main":"index.js","engines":{"node":">=8"},"scripts":{"test":"xo && FORCE_HYPERLINK=1 ava"},"keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"dependencies":{"@samverschueren/stream-to-observable":"^0.3.0","any-observable":"^0.3.0","chalk":"^2.3.0","rimraf":"^2.6.3","execa":"^1.0.0","github-url-from-git":"^1.5.0","has-yarn":"^1.0.0","hosted-git-info":"^2.7.1","inquirer":"^6.2.1","is-scoped":"^1.0.0","issue-regex":"^2.0.0","listr":"^0.14.1","listr-input":"^0.1.1","new-github-release-url":"^0.1.0","npm-name":"^5.0.0","opn":"^5.4.0","ow":"^0.9.1","p-memoize":"^2.1.0","p-timeout":"^2.0.1","pkg-dir":"^3.0.0","read-pkg-up":"^4.0.0","rxjs":"^6.2.0","semver":"^5.2.0","split":"^1.0.0","terminal-link":"^1.1.0"},"devDependencies":{"ava":"^1.0.1","xo":"^0.23.0"},"gitHead":"912471d1f1684248c831c52ec9720b889b7544c1","_id":"@pika/publish@0.1.4","_npmVersion":"6.4.1","_nodeVersion":"10.13.0","_npmUser":{"name":"fredkschott","email":"fkschott@gmail.com"},"dist":{"integrity":"sha512-dvOyziLUNVXLxWLe704kg145y7HvidTMp7PKQXjctTRqHFND86WcfNBafw0RMeCOXOLE+TIl8yUC1jxJBXWzQQ==","shasum":"d1310649d575121a5017503f72cc0e9baca1111b","tarball":"https://registry.npmjs.org/@pika/publish/-/publish-0.1.4.tgz","fileCount":14,"unpackedSize":30343,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJcOvyTCRA9TVsSAnZWagAA58cQAJST+w52t/NknDQT59Zr\n0xaXdNiewUdKm9uaLJs7arTyhZPlioT0qO2vyGHuiaUn72UYwhMTBuuM5TaD\nW2tw1j0NnQOBYj1y8gBCBQZV5PT+y4Cbj5viSI4tgwviHHRcTi3ysmnM4lw2\nCkDQsXUAUBBvjmTyjWPXFWj1Y9c3suz4LIjVhCcULX8EH01SXq4T2MVHARiC\nhPEktVC46SNQbbZSf+3g3RbjYg5+MNaf58hKLuXKM5TF7sjftQErFJKi1wh8\nGvDeEHlM37en0CbJVk9+4CC3BfLvPeYzjVSIdKip2Tf10tZ9+V8134gn7/dk\nGCdxqJvqGExTmZTLAGHOhdGJ8LKP9zY4vEIFB/AMvU9lOTIkbV9WQHmQGQaV\nG3kWr6OGHDN2Zr1BDyFjHDps7RcfWJjWwfv97tB0f6rrkA7gT+PtR61SJ6SC\nxdUbjpK3qn6A08NwfM8DT56fN0AyCtQt/5vAPPe4k4dPhbe0/Re72nzxAGhE\nzYA6P8mYUOO5gMwFvx52bdoLM9MaaqlNgqHPDPgbvtwxv5II6+SAtoh1Qy1d\nYznOoOc3fkDs07YcZ7+RF15vpI8Hrx0YSEDfSTbgx2DFi7vSucngVL5hs/lL\nyaYex+maHKCq8vZZ+x361Au0Ti3MsRHoJby7tONa6wb37nJW41TronroMur9\nZw5d\r\n=wVKL\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEQCIHp3tnpmpZJWZE5KloIlQuw0HS42f3tOCSWKWSCKqrK/AiBnCkpXz98nth5zPooZ4NXYbfBBVNthCd0qlen/SbAgKQ=="}]},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/publish_0.1.4_1547369618677_0.27994867061297213"},"_hasShrinkwrap":false}},"time":{"created":"2019-01-13T08:19:25.501Z","0.1.0":"2019-01-13T08:19:25.837Z","modified":"2022-04-06T14:30:52.331Z","0.1.1":"2019-01-13T08:22:46.117Z","0.1.2":"2019-01-13T08:27:26.466Z","0.1.3":"2019-01-13T08:47:10.077Z","0.1.4":"2019-01-13T08:53:38.949Z"},"maintainers":[{"name":"fredkschott","email":"fkschott@gmail.com"}],"description":"Publish with pika","keywords":["cli-app","cli","npm","publish","git","push","version","bump","commit"],"license":"MIT","readme":"# np [![Build Status](https://travis-ci.org/sindresorhus/np.svg?branch=master)](https://travis-ci.org/sindresorhus/np) [![XO code style](https://img.shields.io/badge/code_style-XO-5ed9c7.svg)](https://github.com/xojs/xo)\n\n> A better `npm publish`\n\n<div>\n\t<br>\n\t<br>\n\t<a href=\"https://issuehunt.io\">\n\t\t<img src=\"https://user-images.githubusercontent.com/170270/50307315-5c349200-0498-11e9-95bb-e51a8cfc2b15.png\" width=\"600\">\n\t</a>\n\t<br>\n\t<br>\n\t<br>\n</div>\n\n<img src=\"screenshot.gif\" width=\"688\">\n\n\n## Why\n\n- [Interactive UI](#interactive-ui)\n- Ensures you are publishing from the `master` branch\n- Ensures the working directory is clean and that there are no unpulled changes\n- Reinstalls dependencies to ensure your project works with the latest dependency tree\n- Runs the tests\n- Bumps the version in package.json and npm-shrinkwrap.json (if present) and creates a git tag\n- Prevents [accidental publishing](https://github.com/npm/npm/issues/13248) of pre-release versions under the `latest` [dist-tag](https://docs.npmjs.com/cli/dist-tag)\n- Publishes the new version to npm, optionally under a dist-tag\n- Pushes commits and tags to GitHub/GitLab\n- Supports [two-factor authentication](https://docs.npmjs.com/getting-started/using-two-factor-authentication)\n- Opens a prefilled GitHub Releases draft after publish\n\n\n## Install\n\n```\n$ npm install --global np\n```\n\n<a href=\"https://www.patreon.com/sindresorhus\">\n\t<img src=\"https://c5.patreon.com/external/logo/become_a_patron_button@2x.png\" width=\"160\">\n</a>\n\n\n## Usage\n\n```\n$ np --help\n\n  Usage\n    $ np <version>\n\n    Version can be:\n      patch | minor | major | prepatch | preminor | premajor | prerelease | 1.2.3\n\n  Options\n    --any-branch  Allow publishing from any branch\n    --no-cleanup  Skips cleanup of node_modules\n    --yolo        Skips cleanup and testing\n    --no-publish  Skips publishing\n    --tag         Publish under a given dist-tag\n    --no-yarn     Don't use Yarn\n    --contents    Subdirectory to publish\n\n  Examples\n    $ np\n    $ np patch\n    $ np 1.0.2\n    $ np 1.0.2-beta.3 --tag=beta\n    $ np 1.0.2-beta.3 --tag=beta --contents=dist\n```\n\n\n## Interactive UI\n\nRun `np` without arguments to launch the interactive UI that guides you through publishing a new version.\n\n<img src=\"screenshot-ui.png\" width=\"1290\">\n\n\n## Tips\n\n### npm hooks\n\nYou can use any of the test/version/publish related [npm lifecycle hooks](https://docs.npmjs.com/misc/scripts) in your package.json to add extra behavior.\n\nFor example, here we build the documentation before tagging the release:\n\n```json\n{\n\t\"name\": \"my-awesome-package\",\n\t\"scripts\": {\n\t\t\"version\": \"./build-docs && git add docs\"\n\t}\n}\n```\n\n### Release script\n\nYou can also add `np` to a custom script in `package.json`. This can be useful if you want all maintainers of a package to release the same way (Not forgetting to push Git tags, for example). However, you can't use `publish` as name of your script because it's an [npm defined lifecycle hook](https://docs.npmjs.com/misc/scripts).\n\n```json\n{\n\t\"name\": \"my-awesome-package\",\n\t\"scripts\": {\n\t\t\"release\": \"np\"\n\t},\n\t\"devDependencies\": {\n\t\t\"np\": \"*\"\n\t}\n}\n```\n\n### Signed Git tag\n\nSet the [`sign-git-tag`](https://docs.npmjs.com/misc/config#sign-git-tag) npm config to have the Git tag signed:\n\n```\n$ npm config set sign-git-tag true\n```\n\nOr set the [`version-sign-git-tag`](https://yarnpkg.com/lang/en/docs/cli/version/#toc-git-tags) Yarn config:\n\n```\n$ yarn config set version-sign-git-tag true\n```\n\n### Private packages\n\n<img src=\"private-packages.png\" width=\"260\" align=\"right\">\n\nYou can use `np` for packages that aren't publicly published to npm (perhaps installed from a private git repo).\n\nSet `\"private\": true` in your `package.json` and the publish step will be skipped. All other steps\nincluding versioning and pushing tags will still be completed.\n\n### Public scoped packages\n\nTo publish [scoped packages](https://docs.npmjs.com/misc/scope#publishing-public-scoped-packages-to-the-public-npm-registry) to the public registry, you need to set the access level to `public`. You can do that by adding the following to your `package.json`:\n\n```json\n\"publishConfig\": {\n\t\"access\": \"public\"\n}\n```\n\n### Publish to a custom registry\n\nSet the [`registry` option](https://docs.npmjs.com/misc/config#registry) in package.json to the URL of your registry:\n\n```json\n\"publishConfig\":{\n\t\"registry\": \"http://my-internal-registry.local\"\n}\n```\n\n### Publish with a CI\n\nIf you use a Continuous Integration server to publish your tagged commits, use the `--no-publish` flag to skip the publishing step of `np`.\n\n### Publish to gh-pages\n\nTo publish to `gh-pages` or any other branch that serves your static assets), install [`branchsite`](https://github.com/enriquecaballero/branchsite), an `np`-like CLI tool aimed to compliment `np`, and create an [npm \"post\" hook](https://docs.npmjs.com/misc/scripts) that runs after `np`.\n\n```\n$ npm install --save-dev branchsite\n```\n\n```json\n\"scripts\":{\n\t\"deploy\": \"np\",\n\t\"postdeploy\": \"bs\"\n}\n```\n\n### Initial version\n\nFor new packages, start the `version` field in package.json at `0.0.0` and let `np` bump it to `1.0.0` or `0.1.0` when publishing.\n\n### Prerequisite step runs forever on macOS\n\nIf you're using macOS Sierra 10.12.2 or later, your SSH key passphrase is no longer stored into the keychain by default. This may cause the `prerequisite` step to run forever because it prompts for your passphrase in the background. To fix this, add the following lines to your `~/.ssh/config` and run a simple Git command like `git fetch`.\n\n```\nHost *\n AddKeysToAgent yes\n UseKeychain yes\n```\n\nIf you're running into other issues when using SSH, please consult [GitHub's support article](https://help.github.com/articles/connecting-to-github-with-ssh/).\n\n\n## Created by\n\n- [Sindre Sorhus](https://github.com/sindresorhus)\n- [Sam Verschueren](https://github.com/SamVerschueren)\n\n\n## License\n\nMIT\n","readmeFilename":"readme.md"}