title: npm view version in pre-release script
body: <p>I'm working on a pipeline that should release a new version of the npm package, but I'm having some problems updating the version number.  Specifically, how to get the <em>last</em> patch version so I can bump that, then use <code>npm version</code> to update the version.  Something like this (obvious psuedo-code ahead)</p>
  <p>pre-release.js</p>
  <pre><code>const [major, minor, patch] = `npm view @scope/my-library version`.split('.')
  
  `npm version [major, minor, patch + 1].join('.')`
  </code></pre>
  <p>This is for executing as part of an Azure DevOps pipeline.</p>