release-please
generate release PRs based on the conventionalcommits.org spec
Last updated 4 years ago by google-wombot .
Apache-2.0 · Repository · Bugs · Original npm · Tarball · package.json
$ npm install release-please 
SYNC missed versions from official npm registry.
Google Cloud Platform logo

Release Please

npm version codecov

Release Please automates CHANGELOG generation, the creation of GitHub releases, and version bumps for your projects.

It does so by parsing your git history, looking for Conventional Commit messages, and creating release PRs.

What's a Release PR?

Rather than continuously releasing what's landed to your default branch, release-please maintains Release PRs:

These Release PRs are kept up-to-date as additional work is merged. When you're ready to tag a release, simply merge the release PR.

How should I write my commits?

Release Please assumes you are using Conventional Commit messages.

The most important prefixes you should have in mind are:

  • fix: which represents bug fixes, and correlates to a SemVer patch.
  • feat: which represents a new feature, and correlates to a SemVer minor.
  • feat!:, or fix!:, refactor!:, etc., which represent a breaking change (indicated by the !) and will result in a SemVer major.

Release types supported

Release Please automates releases for the following flavors of repositories:

release type description
node A Node.js repository, with a package.json and CHANGELOG.md
python A Python repository, with a setup.py, setup.cfg, and CHANGELOG.md
terraform-module A terraform module, with a version in the README.md, and a CHANGELOG.md
simple A repository with a version.txt and a CHANGELOG.md

Adding additional release types

To add a new release type, simply use the existing releasers and updaters as a starting point.

releasers describe the files that should be updated for a release.

updaters describe how to update the version in these files.

Setting up Release Please

There are a variety of ways you can deploy release-please:

GitHub Action (recommended)

The easiest way to run release please is as a GitHub action:

  1. If you haven't already done so, create a .github/workflows folder in your repository (this is where your actions will live).

  2. Now create a .github/workflows/release-please.yml file with these contents:

     on:
       push:
         branches:
           - master
     name: release-please
     jobs:
       release-please:
         runs-on: ubuntu-latest
         steps:
           - uses: GoogleCloudPlatform/release-please-action@v1.3.0
             with:
               token: ${{ secrets.GITHUB_TOKEN }}
               release-type: node
               package-name: release-please-action
    
  3. Merge the above action into your repository and make sure new commits follow the Conventional Commits convention, release-please will start creating Release PRs for you.

Automating publication to npm

With a few additions, the Release Please action can be made to publish to npm when a Release PR is merged:

on:
  push:
    branches:
      - master
name: release-please
jobs:
  release-please:
    runs-on: ubuntu-latest
    steps:
      - uses: GoogleCloudPlatform/release-please-action@v1.3.0
        id: release
        with:
          token: ${{ secrets.GITHUB_TOKEN }}
          release-type: node
          package-name: test-release-please
      # The logic below handles the npm publication:
      - uses: actions/checkout@v2
        # these if statements ensure that a publication only occurs when
        # a new release is created:
        if: ${{ steps.release.outputs.release_created }}
      - uses: actions/setup-node@v1
        with:
          node-version: 12
          registry-url: 'https://registry.npmjs.org'
        if: ${{ steps.release.outputs.release_created }}
      # if you are using Yarn, substitute the command below with `yarn install --frozen-lockfile`
      - run: npm ci
        if: ${{ steps.release.outputs.release_created }}
      - run: npm publish
        env:
          NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
        if: ${{ steps.release.outputs.release_created }}

So that you can keep 2FA enabled for npm publications, we recommend setting registry-url to your own Wombat Dressing Room deployment.

Running as CLI

Install release-please globally:

npm i release-please -g

Creating/updating release PRs

release-please release-pr --package-name=@google-cloud/firestore" \
  --repo-url=googleapis/nodejs-firestore \
  --token=$GITHUB_TOKEN
option description
--package-name is the name of the package to publish to publish to an upstream registry such as npm.
--repo-url is the URL of the repository on GitHub.
--token a token with write access to --repo-url.
--default-branch branch to open pull release PR against (detected by default).
--path create a release from a path other than the repository's root
--monorepo-tags add prefix to tags and branches, allowing multiple libraries to be released from the same repository.

Creating a release on GitHub

release-please github-release --repo-url=googleapis/nodejs-firestore \
  --token=$GITHUB_TOKEN
option description
--package-name is the name of the package to publish to publish to an upstream registry such as npm.
--repo-url is the URL of the repository on GitHub.
--token a token with write access to --repo-url.
--path create a release from a path other than the repository's root

Running as a GitHub App

There is a probot application available, which allows you to deploy Release Please as a GitHub App:

Supported Node.js Versions

Our client libraries follow the Node.js release schedule. Libraries are compatible with all current active and maintenance versions of Node.js.

Client libraries targeting some end-of-life versions of Node.js are available, and can be installed via npm dist-tags. The dist-tags follow the naming convention legacy-(version).

Legacy Node.js versions are supported as a best effort:

  • Legacy versions will not be tested in continuous integration.
  • Some security patches may not be able to be backported.
  • Dependencies will not be kept up-to-date, and features will not be backported.

Legacy tags available

  • legacy-8: install client libraries from this dist-tag for versions compatible with Node.js 8.

Versioning

This library follows Semantic Versioning.

Contributing

Contributions welcome! See the Contributing Guide.

Please note that this README.md, the samples/README.md, and a variety of configuration files in this repository (including .nycrc and tsconfig.json) are generated from a central template. To edit one of these files, make an edit to its template in this directory.

License

Apache Version 2.0

See LICENSE

Current Tags

  • 16.15.0                                ...           latest (a month ago)
  • 6.9.4                                ...           latest-6 (4 years ago)
  • 13.16.3                                ...           legacy-10 (3 years ago)
  • 3.2.2                                ...           legacy-8 (5 years ago)
  • 12.6.1                                ...           next (3 years ago)
  • 6.4.2-candidate-1                                ...           otp-test (4 years ago)

383 Versions

  • 16.15.0                                ...           a month ago
  • 16.14.4                                ...           a month ago
  • 16.14.3                                ...           2 months ago
  • 16.14.2                                ...           3 months ago
  • 16.14.1                                ...           3 months ago
  • 16.14.0                                ...           3 months ago
  • 16.13.0                                ...           3 months ago
  • 16.12.2                                ...           3 months ago
  • 16.12.1                                ...           3 months ago
  • 16.12.0                                ...           7 months ago
  • 16.11.0                                ...           7 months ago
  • 16.10.2                                ...           8 months ago
  • 16.10.1                                ...           9 months ago
  • 16.10.0                                ...           9 months ago
  • 16.9.0                                ...           10 months ago
  • 16.8.0                                ...           a year ago
  • 16.7.1                                ...           a year ago
  • 16.7.0                                ...           a year ago
  • 16.6.0                                ...           a year ago
  • 16.5.1                                ...           a year ago
  • 16.5.0                                ...           a year ago
  • 16.4.1                                ...           a year ago
  • 16.4.0                                ...           a year ago
  • 16.3.1                                ...           a year ago
  • 16.3.0                                ...           a year ago
  • 16.2.0                                ...           a year ago
  • 16.1.0                                ...           a year ago
  • 16.0.0                                ...           a year ago
  • 15.13.0                                ...           a year ago
  • 15.12.0                                ...           a year ago
  • 15.11.2                                ...           a year ago
  • 15.11.1                                ...           a year ago
  • 15.11.0                                ...           2 years ago
  • 15.10.5                                ...           2 years ago
  • 15.10.4                                ...           2 years ago
  • 15.10.3                                ...           2 years ago
  • 15.10.2                                ...           2 years ago
  • 15.10.1                                ...           2 years ago
  • 15.10.0                                ...           2 years ago
  • 15.9.3                                ...           2 years ago
  • 15.9.2                                ...           2 years ago
  • 15.9.1                                ...           2 years ago
  • 15.9.0                                ...           2 years ago
  • 15.8.2                                ...           2 years ago
  • 15.8.1                                ...           2 years ago
  • 15.8.0                                ...           2 years ago
  • 15.7.0                                ...           2 years ago
  • 15.6.0                                ...           2 years ago
  • 15.5.1                                ...           2 years ago
  • 15.5.0                                ...           2 years ago
  • 15.4.0                                ...           2 years ago
  • 15.3.1                                ...           2 years ago
  • 15.3.0                                ...           2 years ago
  • 15.2.0                                ...           2 years ago
  • 15.1.2                                ...           2 years ago
  • 15.1.1                                ...           2 years ago
  • 15.1.0                                ...           2 years ago
  • 15.0.0                                ...           2 years ago
  • 14.17.5                                ...           2 years ago
  • 14.17.4                                ...           2 years ago
  • 14.17.3                                ...           2 years ago
  • 14.17.2                                ...           2 years ago
  • 14.17.1                                ...           2 years ago
  • 14.17.0                                ...           2 years ago
  • 14.16.0                                ...           2 years ago
  • 14.15.3                                ...           2 years ago
  • 14.15.2                                ...           2 years ago
  • 14.15.1                                ...           2 years ago
  • 14.15.0                                ...           2 years ago
  • 14.14.0                                ...           2 years ago
  • 14.13.2                                ...           2 years ago
  • 14.13.1                                ...           2 years ago
  • 14.13.0                                ...           2 years ago
  • 14.12.0                                ...           2 years ago
  • 14.11.2                                ...           2 years ago
  • 14.11.1                                ...           2 years ago
  • 14.11.0                                ...           2 years ago
  • 14.10.2                                ...           2 years ago
  • 14.10.1                                ...           2 years ago
  • 14.10.0                                ...           2 years ago
  • 14.9.0                                ...           2 years ago
  • 14.8.0                                ...           2 years ago
  • 14.7.2                                ...           2 years ago
  • 14.7.1                                ...           2 years ago
  • 14.7.0                                ...           2 years ago
  • 14.6.1                                ...           2 years ago
  • 14.6.0                                ...           2 years ago
  • 14.5.0                                ...           2 years ago
  • 14.4.0                                ...           2 years ago
  • 14.3.1                                ...           2 years ago
  • 14.3.0                                ...           2 years ago
  • 14.2.4                                ...           2 years ago
  • 14.2.3                                ...           2 years ago
  • 14.2.2                                ...           2 years ago
  • 14.2.1                                ...           2 years ago
  • 14.2.0                                ...           2 years ago
  • 14.1.2                                ...           2 years ago
  • 14.1.1                                ...           2 years ago
  • 14.1.0                                ...           2 years ago
  • 14.0.0                                ...           2 years ago
  • 13.21.0                                ...           2 years ago
  • 13.20.0                                ...           2 years ago
  • 13.19.9                                ...           2 years ago
  • 13.19.8                                ...           2 years ago
  • 13.19.7                                ...           2 years ago
  • 13.19.6                                ...           2 years ago
  • 13.19.5                                ...           2 years ago
  • 13.19.4                                ...           2 years ago
  • 13.19.3                                ...           2 years ago
  • 13.19.2                                ...           2 years ago
  • 13.19.1                                ...           2 years ago
  • 13.19.0                                ...           2 years ago
  • 13.18.7                                ...           2 years ago
  • 13.18.6                                ...           2 years ago
  • 13.18.5                                ...           3 years ago
  • 13.18.4                                ...           3 years ago
  • 13.18.3                                ...           3 years ago
  • 13.18.2                                ...           3 years ago
  • 13.18.1                                ...           3 years ago
  • 13.18.0                                ...           3 years ago
  • 13.17.1                                ...           3 years ago
  • 13.17.0                                ...           3 years ago
  • 13.16.6                                ...           3 years ago
  • 13.16.5                                ...           3 years ago
  • 13.16.4                                ...           3 years ago
  • 13.16.3                                ...           3 years ago
  • 13.16.2                                ...           3 years ago
  • 13.16.1                                ...           3 years ago
  • 13.16.0                                ...           3 years ago
  • 13.15.1                                ...           3 years ago
  • 13.15.0                                ...           3 years ago
  • 13.14.0                                ...           3 years ago
  • 13.13.0                                ...           3 years ago
  • 13.12.0                                ...           3 years ago
  • 13.11.1                                ...           3 years ago
  • 13.11.0                                ...           3 years ago
  • 13.10.2                                ...           3 years ago
  • 13.10.1                                ...           3 years ago
  • 13.10.0                                ...           3 years ago
  • 13.9.0                                ...           3 years ago
  • 13.8.1                                ...           3 years ago
  • 13.8.0                                ...           3 years ago
  • 13.7.1                                ...           3 years ago
  • 13.7.0                                ...           3 years ago
  • 13.6.0                                ...           3 years ago
  • 13.5.0                                ...           3 years ago
  • 13.4.15                                ...           3 years ago
  • 13.4.14                                ...           3 years ago
  • 13.4.13                                ...           3 years ago
  • 13.4.12                                ...           3 years ago
  • 13.4.11                                ...           3 years ago
  • 13.4.10                                ...           3 years ago
  • 13.4.9                                ...           3 years ago
  • 13.4.8                                ...           3 years ago
  • 13.4.7                                ...           3 years ago
  • 13.4.6                                ...           3 years ago
  • 13.4.5                                ...           3 years ago
  • 13.4.4                                ...           3 years ago
  • 13.4.3                                ...           3 years ago
  • 13.4.2                                ...           3 years ago
  • 13.4.1                                ...           3 years ago
  • 13.4.0                                ...           3 years ago
  • 13.3.2                                ...           3 years ago
  • 13.3.1                                ...           3 years ago
  • 13.3.0                                ...           3 years ago
  • 13.2.1                                ...           3 years ago
  • 13.2.0                                ...           3 years ago
  • 13.1.1                                ...           3 years ago
  • 13.1.0                                ...           3 years ago
  • 13.0.2                                ...           3 years ago
  • 13.0.1                                ...           3 years ago
  • 13.0.0                                ...           3 years ago
  • 12.6.3                                ...           3 years ago
  • 12.6.2                                ...           3 years ago
  • 12.6.1                                ...           3 years ago
  • 13.0.0-candidate.5                                ...           3 years ago
  • 13.0.0-candidate.4                                ...           3 years ago
  • 13.0.0-candidate.3                                ...           3 years ago
  • 13.0.0-candidate.2                                ...           3 years ago
  • 13.0.0-candidate.1                                ...           3 years ago
  • 13.0.0-candidate.0                                ...           3 years ago
  • 12.6.0                                ...           3 years ago
  • 12.5.0                                ...           3 years ago
  • 12.4.0                                ...           3 years ago
  • 12.3.0                                ...           3 years ago
  • 12.2.0                                ...           3 years ago
  • 12.1.0                                ...           3 years ago
  • 12.0.1                                ...           3 years ago
  • 12.0.0                                ...           3 years ago
  • 11.24.2                                ...           3 years ago
  • 11.24.1                                ...           3 years ago
  • 11.24.0                                ...           3 years ago
  • 11.23.0                                ...           3 years ago
  • 11.22.0                                ...           3 years ago
  • 11.21.0                                ...           3 years ago
  • 11.20.3                                ...           3 years ago
  • 11.20.2                                ...           3 years ago
  • 11.20.1                                ...           3 years ago
  • 11.20.0                                ...           3 years ago
  • 11.19.0                                ...           3 years ago
  • 11.18.0                                ...           3 years ago
  • 11.17.0                                ...           3 years ago
  • 11.16.2                                ...           3 years ago
  • 11.16.1                                ...           3 years ago
  • 11.16.0                                ...           3 years ago
  • 11.15.0                                ...           3 years ago
  • 11.14.2                                ...           3 years ago
  • 11.14.1                                ...           3 years ago
  • 11.14.0                                ...           3 years ago
  • 11.13.2                                ...           3 years ago
  • 11.13.1                                ...           4 years ago
  • 11.13.0                                ...           4 years ago
  • 11.12.1                                ...           4 years ago
  • 11.12.0                                ...           4 years ago
  • 11.11.0                                ...           4 years ago
  • 11.11.0-candidate.0                                ...           4 years ago
  • 11.10.0                                ...           4 years ago
  • 11.9.0                                ...           4 years ago
  • 11.8.1                                ...           4 years ago
  • 11.8.0                                ...           4 years ago
  • 11.7.0                                ...           4 years ago
  • 11.6.0                                ...           4 years ago
  • 11.5.0                                ...           4 years ago
  • 11.4.1                                ...           4 years ago
  • 11.4.0                                ...           4 years ago
  • 11.3.0                                ...           4 years ago
  • 11.3.0-candidate.0                                ...           4 years ago
  • 11.2.1                                ...           4 years ago
  • 11.2.0                                ...           4 years ago
  • 11.1.1                                ...           4 years ago
  • 11.1.0                                ...           4 years ago
  • 11.0.1                                ...           4 years ago
  • 11.0.0                                ...           4 years ago
  • 11.0.0-candidate.3                                ...           4 years ago
  • 11.0.0-candidate.2                                ...           4 years ago
  • 11.0.0-candidate.1                                ...           4 years ago
  • 11.0.0-candidate.0                                ...           4 years ago
  • 10.1.0                                ...           4 years ago
  • 10.1.0-candidate.0                                ...           4 years ago
  • 10.0.0                                ...           4 years ago
  • 10.0.0-candidate.0                                ...           4 years ago
  • 9.5.0-candidate.0                                ...           4 years ago
  • 9.4.1                                ...           4 years ago
  • 9.4.0                                ...           4 years ago
  • 9.3.0                                ...           4 years ago
  • 9.3.0-candidate.1                                ...           4 years ago
  • 9.3.0-beta.0                                ...           4 years ago
  • 9.2.0                                ...           4 years ago
  • 9.1.0                                ...           4 years ago
  • 9.0.0                                ...           4 years ago
  • 9.0.0-candidate.1                                ...           4 years ago
  • 9.0.0-candidate.0                                ...           4 years ago
  • 8.2.0                                ...           4 years ago
  • 8.1.0                                ...           4 years ago
  • 8.1.0-candidate.0                                ...           4 years ago
  • 8.0.2-candidate.7                                ...           4 years ago
  • 8.0.2-candidate.6                                ...           4 years ago
  • 8.0.2-candidate.5                                ...           4 years ago
  • 8.0.2-candidate.4                                ...           4 years ago
  • 8.0.2-candidate.3                                ...           4 years ago
  • 8.0.2-candidate.2                                ...           4 years ago
  • 8.0.2-candidte.2                                ...           4 years ago
  • 8.0.2-candidte.1                                ...           4 years ago
  • 8.0.2-candidte.0                                ...           4 years ago
  • 8.0.1                                ...           4 years ago
  • 8.0.0                                ...           4 years ago
  • 6.9.4                                ...           4 years ago
  • 6.9.3                                ...           4 years ago
  • 7.0.0                                ...           4 years ago
  • 7.0.0-candidate.3                                ...           4 years ago
  • 7.0.0-candidate.2                                ...           4 years ago
  • 7.0.0-candidate.1                                ...           4 years ago
  • 7.0.0-candidate.0                                ...           4 years ago
  • 6.10.0-beta.0                                ...           4 years ago
  • 6.9.1                                ...           4 years ago
  • 6.9.0                                ...           4 years ago
  • 6.8.3                                ...           4 years ago
  • 6.8.2                                ...           4 years ago
  • 6.8.1                                ...           4 years ago
  • 6.8.0                                ...           4 years ago
  • 6.7.0                                ...           4 years ago
  • 6.6.0                                ...           4 years ago
  • 6.5.2                                ...           4 years ago
  • 6.5.1                                ...           4 years ago
  • 6.5.0                                ...           4 years ago
  • 6.4.4                                ...           4 years ago
  • 6.4.3                                ...           4 years ago
  • 6.4.2                                ...           4 years ago
  • 6.4.2-candidate-2                                ...           4 years ago
  • 6.4.2-candidate-1                                ...           4 years ago
  • 6.4.2-candidate-0                                ...           4 years ago
  • 6.4.1                                ...           4 years ago
  • 6.4.0                                ...           4 years ago
  • 6.3.0                                ...           4 years ago
  • 6.2.0                                ...           4 years ago
  • 6.1.0                                ...           4 years ago
  • 6.1.0-beta.0                                ...           4 years ago
  • 6.0.0                                ...           4 years ago
  • 5.9.1                                ...           4 years ago
  • 5.9.0                                ...           4 years ago
  • 5.8.0                                ...           4 years ago
  • 5.7.3                                ...           4 years ago
  • 5.7.2                                ...           4 years ago
  • 5.7.1                                ...           4 years ago
  • 5.7.0                                ...           4 years ago
  • 5.6.2                                ...           4 years ago
  • 5.6.1                                ...           4 years ago
  • 5.6.0                                ...           4 years ago
  • 5.5.2                                ...           4 years ago
  • 5.5.1                                ...           4 years ago
  • 5.5.0                                ...           4 years ago
  • 5.4.0                                ...           5 years ago
  • 5.3.0                                ...           5 years ago
  • 5.2.1                                ...           5 years ago
  • 5.2.0-beta.0                                ...           5 years ago
  • 5.2.0                                ...           5 years ago
  • 5.1.0                                ...           5 years ago
  • 5.0.0                                ...           5 years ago
  • 4.2.2                                ...           5 years ago
  • 4.2.1                                ...           5 years ago
  • 4.2.0                                ...           5 years ago
  • 4.1.1                                ...           5 years ago
  • 4.1.0                                ...           5 years ago
  • 4.0.3                                ...           5 years ago
  • 4.0.2                                ...           5 years ago
  • 4.0.1                                ...           5 years ago
  • 4.0.0                                ...           5 years ago
  • 3.3.0                                ...           5 years ago
  • 3.2.3                                ...           5 years ago
  • 3.2.2                                ...           5 years ago
  • 3.2.1                                ...           5 years ago
  • 3.2.0                                ...           5 years ago
  • 3.1.1                                ...           5 years ago
  • 3.1.0                                ...           5 years ago
  • 3.0.0                                ...           5 years ago
  • 2.16.2                                ...           5 years ago
  • 2.16.1                                ...           5 years ago
  • 2.16.0                                ...           5 years ago
  • 2.15.0                                ...           5 years ago
  • 2.14.0                                ...           5 years ago
  • 2.13.0                                ...           5 years ago
  • 2.12.1                                ...           5 years ago
  • 2.12.0                                ...           5 years ago
  • 2.11.0                                ...           5 years ago
  • 2.10.1                                ...           5 years ago
  • 2.10.0                                ...           5 years ago
  • 2.9.0                                ...           5 years ago
  • 2.8.0                                ...           5 years ago
  • 2.7.1                                ...           5 years ago
  • 2.7.0                                ...           5 years ago
  • 2.6.1                                ...           5 years ago
  • 2.6.0                                ...           5 years ago
  • 2.5.2                                ...           5 years ago
  • 2.5.1                                ...           5 years ago
  • 2.5.0                                ...           5 years ago
  • 2.4.1                                ...           5 years ago
  • 2.4.0                                ...           5 years ago
  • 2.3.2                                ...           5 years ago
  • 2.9.9                                ...           5 years ago
  • 2.3.1                                ...           5 years ago
  • 2.2.3                                ...           5 years ago
  • 2.3.0                                ...           5 years ago
  • 2.2.4                                ...           5 years ago
  • 2.2.2                                ...           5 years ago
  • 2.2.1                                ...           6 years ago
  • 2.2.0                                ...           6 years ago
  • 2.1.0                                ...           6 years ago
  • 2.0.1                                ...           6 years ago
  • 2.0.0                                ...           6 years ago
  • 1.6.1                                ...           6 years ago
  • 1.6.0                                ...           6 years ago
  • 1.5.1                                ...           6 years ago
  • 1.5.0                                ...           6 years ago
  • 1.4.2                                ...           6 years ago
  • 1.4.1                                ...           6 years ago
  • 1.4.0                                ...           6 years ago
  • 1.3.0                                ...           6 years ago
  • 1.2.0                                ...           6 years ago
  • 1.2.0-candidate.1                                ...           6 years ago
  • 1.2.0-candidate.0                                ...           6 years ago
  • 1.1.0                                ...           6 years ago
  • 1.0.1                                ...           6 years ago
  • 1.0.0                                ...           6 years ago
Maintainers (2)
Downloads
Total 319
Today 1
This Week 2
This Month 2
Last Day 1
Last Week 0
Last Month 0
Dev Dependencies (17)
Dependents (1)

© 2010 - cnpmjs.org x YWFE | Home | YWFE