All Projects β†’ vercel β†’ Release

vercel / Release

Licence: mit
Generate changelogs with a single command

Programming Languages

javascript
184084 projects - #8 most used programming language

Projects that are alternatives of or similar to Release

vercel-toast
πŸ’¬ Framework-agnostic vercel design's toast component (β‰ˆ1KB Gzipped)
Stars: ✭ 67 (-98.03%)
Mutual labels:  zeit, vercel
Swr
React Hooks for data fetching
Stars: ✭ 20,348 (+498.12%)
Mutual labels:  zeit, vercel
Micro
Asynchronous HTTP microservices
Stars: ✭ 9,987 (+193.56%)
Mutual labels:  zeit, vercel
saika
✍️Effortless info-site, done right.
Stars: ✭ 19 (-99.44%)
Mutual labels:  zeit, vercel
netlify-cms-oauth-provider-node
A stateless external OAuth provider for netlify-cms with built-in support for Vercel serverless functions
Stars: ✭ 30 (-99.12%)
Mutual labels:  zeit, vercel
unity-now
β–² Vercel Now plugin for Unity. Deploy WebGL builds with ease
Stars: ✭ 21 (-99.38%)
Mutual labels:  zeit, vercel
octoclairvoyant-webapp
Compare GitHub changelogs across multiple releases in a single view.
Stars: ✭ 45 (-98.68%)
Mutual labels:  releases, vercel
notion-custom-domain
πŸ“ Custom domains for your public Notion pages
Stars: ✭ 23 (-99.32%)
Mutual labels:  zeit, vercel
Arcgis Js Api
Minified version of the ArcGIS API for JavaScript
Stars: ✭ 290 (-91.48%)
Mutual labels:  npm
Webpack Cdn Plugin
A webpack plugin that use externals of CDN urls for production and local node_modules for development
Stars: ✭ 306 (-91.01%)
Mutual labels:  npm
Express React Fullstack
Simple, Useful Full Stack Express and React Application
Stars: ✭ 286 (-91.59%)
Mutual labels:  npm
React Cookie Consent
A small, simple and customizable cookie consent bar for use in React applications.
Stars: ✭ 293 (-91.39%)
Mutual labels:  npm
Openapi Generator Cli
A node package wrapper for https://github.com/OpenAPITools/openapi-generator
Stars: ✭ 305 (-91.03%)
Mutual labels:  npm
Length.js
πŸ“ JavaScript library for length units conversion.
Stars: ✭ 292 (-91.42%)
Mutual labels:  npm
Confused
Tool to check for dependency confusion vulnerabilities in multiple package management systems
Stars: ✭ 314 (-90.77%)
Mutual labels:  npm
Draggable Vue Directive
Vue2 directive that handles drag & drop
Stars: ✭ 286 (-91.59%)
Mutual labels:  npm
Awps
A Modern WordPress Starter Theme for savvy Developers
Stars: ✭ 319 (-90.62%)
Mutual labels:  npm
Devlopr Jekyll
Build and Deploy your Static Site πŸš€ using this beautiful Jekyll Framework/Theme built for Creatives
Stars: ✭ 309 (-90.92%)
Mutual labels:  zeit
Scroll Hint
A JS library to suggest that the elements are scrollable horizontally, with the pointer icon.
Stars: ✭ 305 (-91.03%)
Mutual labels:  npm
Windows Build Tools
πŸ“¦ Install C++ Build Tools for Windows using npm
Stars: ✭ 3,280 (-3.59%)
Mutual labels:  npm

Build Status Join the community on GitHub Discussions

When run, this command line interface automatically generates a new GitHub Release and populates it with the changes (commits) made since the last release.

Usage

Firstly, install the package from npm (you'll need at least Node.js 7.6.0):

npm install -g release

Alternatively, you can use Yarn to install it:

yarn global add release

Once that's done, you can run this command inside your project's directory:

release <type>

As you can see, a <type> argument can be passed. If you leave it out, a GitHub Release will be created from the most recent commit and tag.

According to the SemVer spec, the argument can have one of these values:

  • major: Incompatible API changes were introduced
  • minor: Functionality was added in a backwards-compatible manner
  • patch: Backwards-compatible bug fixes were applied

In addition to those values, we also support creating pre-releases like 3.0.0-canary.1:

release pre

You can also apply a custom suffix in place of "canary" like this:

release pre <suffix>

Assuming that you provide "beta" as the <suffix> your release will then be 3.0.0-beta.1 – and so on...

Options

The following command will show you a list of all available options:

release help

Pre-Defining Types

If you want to automate release even further, specify the change type of your commits by adding it to the title or description within parenthesis:

Error logging works now (patch)

Assuming that you've defined it for a certain commit, release won't ask you to set a type for it manually. This will make the process of creating a release even faster.

To pre-define that a commit should be excluded from the list, you can use this keyword:

This is a commit message (ignore)

Custom Hook

Sometimes you might want to filter the information that gets inserted into new releases by adding an intro text, replacing certain data or just changing the order of the changes.

With a custom hook, the examples above (and many more) are very easy to accomplish:

By default, release will look for a file named release.js in the root directory of your project. This file should export a function with two parameters and always return a String (the final release):

module.exports = async (markdown, metaData) => {
	// Use the available data to create a custom release
	return markdown;
};

In the example above, markdown contains the release as a String (if you just want to replace something). In addition, metaData contains these properties:

Property Name Content
changeTypes The types of changes and their descriptions
commits A list of commits since the latest release
groupedCommits Similar to commits, but grouped by the change types
authors The GitHub usernames of the release collaborators

Hint: You can specify a custom location for the hook file using the --hook or -H flag, which takes in a path relative to the current working directory.

Why?

As we at Vercel moved all of our GitHub repositories from keeping a HISTORY.md file to using GitHub Releases, we needed a way to automatically generate these releases from our own devices, rather than always having to open a page in the browser and manually add the notes for each change.

Contributing

You can find the authentication flow here.

  1. Fork this repository to your own GitHub account and then clone it to your local device
  2. Uninstall the package if it's already installed: npm uninstall -g release
  3. Link the package to the global module directory: npm link
  4. You can now use release on the command line!

As always, you can use npm test to run the tests and see if your changes have broken anything.

Credits

Thanks a lot to Daniel Chatfield for donating the "release" name on npm and my lovely team for telling me about their needs and how I can make this package as efficient as possible.

Author

Leo Lamprecht (@notquiteleo) - Vercel

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].