@hoangcung1804npm/excepturi-cumque-dignissimos

1.0.0Β β€’Β PublicΒ β€’Β Published

Release It! πŸš€

πŸš€ Generic CLI tool to automate versioning and package publishing-related tasks:

Use @hoangcung1804npm/excepturi-cumque-dignissimos for version management and publish to anywhere with its versatile configuration, a powerful plugin system, and hooks to execute any command you need to test, build, and/or publish your project.

Action Status npm version

Are you using @hoangcung1804npm/excepturi-cumque-dignissimos at work? Please consider sponsoring me!

Installation

Although @hoangcung1804npm/excepturi-cumque-dignissimos is a generic release tool, most projects use it for projects with npm packages. The recommended way to install @hoangcung1804npm/excepturi-cumque-dignissimos uses npm and adds some minimal configuration to get started:

npm init @hoangcung1804npm/excepturi-cumque-dignissimos

Alternatively, install it manually, and add the release script to package.json:

npm install -D @hoangcung1804npm/excepturi-cumque-dignissimos
{
  "name": "my-package",
  "version": "1.0.0",
  "scripts": {
    "release": "@hoangcung1804npm/excepturi-cumque-dignissimos"
  },
  "devDependencies": {
    "@hoangcung1804npm/excepturi-cumque-dignissimos": "^16.1.0"
  }
}

Usage

Run @hoangcung1804npm/excepturi-cumque-dignissimos from the root of the project using either npm run or npx:

npm run release
npx @hoangcung1804npm/excepturi-cumque-dignissimos

You will be prompted to select the new version, and more prompts will follow based on your configuration.

Yarn

Using Yarn? Please see the npm section on Yarn.

Monorepos

Using a monorepo? Please see this monorepo recipe.

Global Installation

Per-project installation as shown above is recommended, but global installs are supported as well:

  • From npm: npm install -g @hoangcung1804npm/excepturi-cumque-dignissimos
  • From Homebrew: brew install @hoangcung1804npm/excepturi-cumque-dignissimos

Containerized

Use Release It! - Containerized to run it in any environment as a standardized container without the need for a Node environment. Thanks Juan Carlos!

Videos, articles & examples

Here's a list of interesting external resources:

Want to add yours to the list? Just open a pull request!

Configuration

Out of the box, @hoangcung1804npm/excepturi-cumque-dignissimos has sane defaults, and plenty of options to configure it. Most projects use a .@hoangcung1804npm/excepturi-cumque-dignissimos.json file in the project root, or a @hoangcung1804npm/excepturi-cumque-dignissimos property in package.json.

Here's a quick example .@hoangcung1804npm/excepturi-cumque-dignissimos.json:

{
  "git": {
    "commitMessage": "chore: release v${version}"
  },
  "github": {
    "release": true
  }
}

β†’ See Configuration for more details.

Interactive vs. CI mode

By default, @hoangcung1804npm/excepturi-cumque-dignissimos is interactive and allows you to confirm each task before execution:

By using the --ci option, the process is fully automated without prompts. The configured tasks will be executed as demonstrated in the first animation above. In a Continuous Integration (CI) environment, this non-interactive mode is activated automatically.

Use --only-version to use a prompt only to determine the version, and automate the rest.

Latest version

How does @hoangcung1804npm/excepturi-cumque-dignissimos determine the latest version?

  1. For projects with a package.json, its version will be used (see npm to skip this).
  2. Otherwise, @hoangcung1804npm/excepturi-cumque-dignissimos uses the latest Git tag to determine which version should be released.
  3. As a last resort, 0.0.0 will be used as the latest version.

Alternatively, a plugin can be used to override this (e.g. to manage a VERSION or composer.json file):

Add the --release-version flag to print the next version without releasing anything.

Git

Git projects are supported well by @hoangcung1804npm/excepturi-cumque-dignissimos, automating the tasks to stage, commit, tag and push releases to any Git remote.

β†’ See Git for more details.

GitHub Releases

GitHub projects can have releases attached to Git tags, containing release notes and assets. There are two ways to add GitHub releases in your @hoangcung1804npm/excepturi-cumque-dignissimos flow:

  1. Automated (requires a GITHUB_TOKEN)
  2. Manual (using the GitHub web interface with pre-populated fields)

β†’ See GitHub Releases for more details.

GitLab Releases

GitLab projects can have releases attached to Git tags, containing release notes and assets. To automate GitLab releases:

β†’ See GitLab Releases for more details.

Changelog

By default, @hoangcung1804npm/excepturi-cumque-dignissimos generates a changelog, to show and help select a version for the new release. Additionally, this changelog serves as the release notes for the GitHub or GitLab release.

The default command is based on git log .... This setting (git.changelog) can be overridden. To further customize the release notes for the GitHub or GitLab release, there's github.releaseNotes or gitlab.releaseNotes. Make sure any of these commands output the changelog to stdout. Note that @hoangcung1804npm/excepturi-cumque-dignissimos by default is agnostic to commit message conventions. Plugins are available for:

  • GitHub and GitLab Releases
  • auto-changelog
  • Conventional Changelog
  • Keep A Changelog

To print the changelog without releasing anything, add the --changelog flag.

β†’ See Changelog for more details.

Publish to npm

With a package.json in the current directory, @hoangcung1804npm/excepturi-cumque-dignissimos will let npm bump the version in package.json (and package-lock.json if present), and publish to the npm registry.

β†’ See Publish to npm for more details.

Manage pre-releases

With @hoangcung1804npm/excepturi-cumque-dignissimos, it's easy to create pre-releases: a version of your software that you want to make available, while it's not in the stable semver range yet. Often "alpha", "beta", and "rc" (release candidate) are used as identifiers for pre-releases. An example pre-release version is 2.0.0-beta.0.

β†’ See Manage pre-releases for more details.

Update or re-run existing releases

Use --no-increment to not increment the last version, but update the last existing tag/version.

This may be helpful in cases where the version was already incremented. Here are a few example scenarios:

  • To update or publish a (draft) GitHub Release for an existing Git tag.
  • Publishing to npm succeeded, but pushing the Git tag to the remote failed. Then use @hoangcung1804npm/excepturi-cumque-dignissimos --no-increment --no-npm to skip the npm publish and try pushing the same Git tag again.

Hooks

Use script hooks to run shell commands at any moment during the release process (such as before:init or after:release).

The format is [prefix]:[hook] or [prefix]:[plugin]:[hook]:

part value
prefix before or after
plugin version, git, npm, github, gitlab
hook init, bump, release

Use the optional :plugin part in the middle to hook into a life cycle method exactly before or after any plugin.

The core plugins include version, git, npm, github, gitlab.

Note that hooks like after:git:release will not run when either the git push failed, or when it is configured not to be executed (e.g. git.push: false). See execution order for more details on execution order of plugin lifecycle methods.

All commands can use configuration variables (like template strings). An array of commands can also be provided, they will run one after another. Some example @hoangcung1804npm/excepturi-cumque-dignissimos configuration:

{
  "hooks": {
    "before:init": ["npm run lint", "npm test"],
    "after:my-plugin:bump": "./bin/my-script.sh",
    "after:bump": "npm run build",
    "after:git:release": "echo After git push, before github release",
    "after:release": "echo Successfully released ${name} v${version} to ${repo.repository}."
  }
}

The variables can be found in the default configuration. Additionally, the following variables are exposed:

version
latestVersion
changelog
name
repo.remote, repo.protocol, repo.host, repo.owner, repo.repository, repo.project
branchName
releaseUrl

All variables are available in all hooks. The only exception is that the additional variables listed above are not yet available in the init hook.

Use --verbose to log the output of the commands.

For the sake of verbosity, the full list of hooks is actually: init, beforeBump, bump, beforeRelease, release or afterRelease. However, hooks like before:beforeRelease look weird and are usually not useful in practice.

Note that arguments need to be quoted properly when used from the command line:

@hoangcung1804npm/excepturi-cumque-dignissimos --'hooks.after:release="echo Successfully released ${name} v${version} to ${repo.repository}."'

Using Inquirer.js inside custom hook scripts might cause issues (since @hoangcung1804npm/excepturi-cumque-dignissimos also uses this itself).

Dry Runs

Use --dry-run to show the interactivity and the commands it would execute.

β†’ See Dry Runs for more details.

Troubleshooting & debugging

  • With @hoangcung1804npm/excepturi-cumque-dignissimos --verbose (or -V), @hoangcung1804npm/excepturi-cumque-dignissimos prints the output of every user-defined hook.
  • With @hoangcung1804npm/excepturi-cumque-dignissimos -VV, @hoangcung1804npm/excepturi-cumque-dignissimos also prints the output of every internal command.
  • Use NODE_DEBUG=@hoangcung1804npm/excepturi-cumque-dignissimos:* @hoangcung1804npm/excepturi-cumque-dignissimos [...] to print configuration and more error details.

Use verbose: 2 in a configuration file to have the equivalent of -VV on the command line.

Plugins

Since v11, @hoangcung1804npm/excepturi-cumque-dignissimos can be extended in many, many ways. Here are some plugins:

Plugin Description
@@hoangcung1804npm/excepturi-cumque-dignissimos/bumper Read & write the version from/to any file
@@hoangcung1804npm/excepturi-cumque-dignissimos/conventional-changelog Provides recommended bump, conventional-changelog, and updates CHANGELOG.md
@@hoangcung1804npm/excepturi-cumque-dignissimos/keep-a-changelog Maintain CHANGELOG.md using the Keep a Changelog standards
@@hoangcung1804npm/excepturi-cumque-dignissimos-plugins/lerna-changelog Integrates lerna-changelog into the @hoangcung1804npm/excepturi-cumque-dignissimos pipeline
@jcamp-code/@hoangcung1804npm/excepturi-cumque-dignissimos-changelogen Use @unjs/changelogen for versioning and changelog
@@hoangcung1804npm/excepturi-cumque-dignissimos-plugins/workspaces Releases each of your projects configured workspaces
@hoangcung1804npm/excepturi-cumque-dignissimos-calver-plugin Enables Calendar Versioning (calver) with @hoangcung1804npm/excepturi-cumque-dignissimos
@grupoboticario/news-fragments An easy way to generate your changelog file
@j-ulrich/@hoangcung1804npm/excepturi-cumque-dignissimos-regex-bumper Regular expression based version read/write plugin for @hoangcung1804npm/excepturi-cumque-dignissimos
@jcamp-code/@hoangcung1804npm/excepturi-cumque-dignissimos-dotnet Use .csproj or .props file for versioning, automate NuGet publishing
@hoangcung1804npm/excepturi-cumque-dignissimos-pnpm Add basic support for pnpm workspaces, integrates with bumpp and changelogithub

Internally, @hoangcung1804npm/excepturi-cumque-dignissimos uses its own plugin architecture (for Git, GitHub, GitLab, npm).

β†’ See all @hoangcung1804npm/excepturi-cumque-dignissimos plugins on npm.

β†’ See plugins for documentation to write plugins.

Use @hoangcung1804npm/excepturi-cumque-dignissimos programmatically

While mostly used as a CLI tool, @hoangcung1804npm/excepturi-cumque-dignissimos can be used as a dependency to integrate in your own scripts. See use @hoangcung1804npm/excepturi-cumque-dignissimos programmatically for example code.

Example projects using @hoangcung1804npm/excepturi-cumque-dignissimos

Legacy Node.js

The latest major version is v17, supporting Node.js 18 and up (as Node.js v16 is EOL). The previous major version was v16, supporting Node.js 16. Use @hoangcung1804npm/excepturi-cumque-dignissimos v15 for environments running Node.js v14. Also see CHANGELOG.md.

Links

License

MIT

Are you using @hoangcung1804npm/excepturi-cumque-dignissimos at work? Please consider sponsoring me!

/@hoangcung1804npm/excepturi-cumque-dignissimos/

    Package Sidebar

    Install

    npm i @hoangcung1804npm/excepturi-cumque-dignissimos

    Weekly Downloads

    0

    Version

    1.0.0

    License

    MIT

    Unpacked Size

    32.9 kB

    Total Files

    8

    Last publish

    Collaborators

    • hoangcung1804