Before adding automation with the semantic-release Node module, Kent manually versions the library from the command line with NPM. He bumps the version with the npm major command and then demonstrates a few other features like patching and deprecating.
(eastern themed music)…- I'm going to show you how you would do this, probably,…normally if you weren't automating stuff.…The most common way to bump your version is to use npm.…I'll just show you the docs page,…docs.npmjs.com.…Publish.…Version.…Let's go, version.…
Version, where did it go?…We'll go ahead and just do this,…npm version --help.…This allows you to specify what type of version…you want it to be.…We're going to say npm version major…'cause we're going to publish a major release.…We'll just say npm version major.…It's going to do a couple of things.…
First, it's going to update our package JSON.…Then, it's going to also update our tags.…How do I find what tags there are?…Git list tags.…Git tag.…So, npm is responsible for adding that tag…to our most recent commit.…A tag is just like a thing that points to a commit.…That's all that it is.…GitHub uses tags to have that releases page,…and so it points to a commit and then you can download…the source code from that commit,…and all the interesting things.…
We pretty much are only going to use it for the change log.…
Note: This course was created by Frontend Masters. It was originally released on 08/09/2016. We're pleased to host this training in our library.
- Creating an open-source library
- Linting and testing
- Code coverage
- Installing and configuring Babel
- Peer dependencies
- Forking and renaming
- Continuous integration and automating releases
Skill Level Intermediate
1. Creating an Open-Source Library
2. Linting and Testing
3. Git Hooks, Babel, and Webpack
4. Continuous Integration and Automating Releases
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.