{"repo":"bcomnes/npm-bump","free":true,"listed":false,"github":"https://github.com/bcomnes/npm-bump","clone":"git clone https://github.com/bcomnes/npm-bump.git","description":"npm version {major,minor,patch} && npm publish as an action.","language":null,"stars":17,"topics":["npm","github","actions","gh-release","automation"],"license":"MIT","category":"workflow-automation","readme_excerpt":"npm-bump npm version {major,minor,patch} && npm publish as an action. Full npm lifecycle support with releasearoni for GitHub release creation. Opinionated and has a few assumptions. Usage npm-bump uses npm trusted publishing via OIDC — no npm token needed. Set up a trusted publisher on npmjs.com for your package pointing at your repository and workflow file, then use this workflow: This will give you a push-button triggered action that runs npm version {major,minor,patch} , git push --follow-tags and finally npm publish . It is advisable to set a prePublishOnly lifecycle hook that runs, at a minimum, git commit pushing, so that local runs of npm version && npm publish will push the version commits to git the same way as this action will. With that lifecycle set, you can omit the push-version-commit input, or set it to false. The following dependencies and npm lifecycle scripts are recommended for a fully automated release process that includes: - changelog generation - github release creation with changelog contents - automated action based package publishing - parity with a local release process (you can still run npm version && npm publish and get all of the above benefits) Additionally, you should run your tests in order to block a release that isn't passing. Automate only when green. Inputs - version-type (Optional): Dropdown value from workflow dispatch — one of major , minor , patch , custom . When provided, the action resolves the version internally. Use custom togeth","default_branch":null,"files":null,"tree":[],"storefront":"/r/bcomnes","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/bcomnes/npm-bump/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}