t and tag.</li>
<li>Run the <code>postversion</code> script. Use it to clean up the file system or automatically push 
the commit and/or tag.</li>
</ol>
<p>Take the following example:</p>
<pre><code>&quot;scripts&quot;: {
  &quot;preversion&quot;: &quot;npm test&quot;,
  &quot;version&quot;: &quot;npm run build &amp;&amp; git add -A dist&quot;,
  &quot;postversion&quot;: &quot;git push &amp;&amp; git push --tags &amp;&amp; rm -rf build/temp&quot;
}
</code></pre><p>This runs all your tests, and proceeds only