Learn R Programming

precommit (version 0.1.3)

release_gh: Create a new release on GitHub

Description

This must be done before a CRAN release.

Usage

release_gh(bump = "dev", is_cran = bump != "dev")

Arguments

bump

The bump increment, either "dev", "patch", "minor" or "major".

is_cran

Is this release a CRAN release?

CRAN release

If is_cran is TRUE, the workflow is changed slightly:

  • push to release branch, not master.

  • doesn't run release_complete(). This must be done manually after accepted on CRAN.

Details

This function does the following:

  • bump description.

  • update default config in inst/

  • commit

  • git tag

  • run inst/consistent-release-tag hook with --release-mode (passing args to hooks not possible interactively, hence we run in advance).

  • commit and push with skipping inst/consistent-release-tag.

  • autoupdate own config file

  • bump description with dev

  • commit and push DESCRIPTION and .pre-commit-config.yaml