Automatically Publish New Atom Package Versions
I wrote this quick bash script that automatically increments the version of my Atom text editor plugins, pushes everything to my git remote, and then finally publishes the new version to Atom via apm:
Drop this file in the root of your Atom package (see my example) and make sure the file is executable with chmod u+x ./publish
. In my example, I also generate the latest snippet documentation before incrementing a new version, pushing tags, and finally publishing the new version with APM.
You can also publish different types of releases, for example, the following would publish the next major version of your package:
./publish major
The default is minor
and you can run ./publish
. When you fix bugs, you can publish those versions with ./publish patch
. See npm version --help
for more info about semantic versioning. Cheers!