Closed aronatkins closed 1 year ago
[x] Switch to main and pull.
main
git checkout main git pull
[x] Create and switch to a release branch (e.g. release/<version>).
release/<version>
git checkout -b release/0.9.1
[x] Update version in DESCRIPTION file.
DESCRIPTION
[x] Update header and version in NEWS.md. confirm recent changes are included. (style reference)
NEWS.md
[x] Update auto-loaders (from R):
source("R/update.R"); updateInit();
[x] Commit your changes!
git commit -m 'preparing for 0.9.1 release' NEWS.md DESCRIPTION inst
[x] Check current CRAN check results: https://cran.rstudio.org/web/checks/check_results_packrat.html
[x] Check that all URLs are valid (from R):
install.packages("urlchecker") urlchecker::url_check()
[x] Generate a release .tar.gz by running the following command from the parent directory of your packrat repository:
.tar.gz
packrat
R CMD build packrat
[x] Test the package (also from the parent directory):
R CMD check --as-cran packrat_*.tar.gz
[x] Push the branch to GitHub and let our CI workflow run.
[x] Fix any issues identified by the previous steps. Rinse and repeat.
[x] Submit to CRAN. Cross fingers. https://cran.r-project.org/
[x] Wait for CRAN approval.
[x] Squash-and-merge the release/<version> branch back to main.
[x] Create a git tag for your new release and push that tag.
git fetch git tag -a -m 'CRAN release: vX.Y.Z' vX.Y.Z COMMIT_HASH git push origin vX.Y.Z
[x] Create a GitHub release from the tag and include its NEWS.md items as release notes.
[x] Create a branch to bump for development (e.g. development/X.Y.Z+1).
development/X.Y.Z+1
git checkout main git checkout -b development/X.Y.Z+1
[x] Update NEWS.md with an "unreleased" version header and run the following command to update DESCRIPTION and the auto-loaders:
R -f configure.R
git commit -m 'preparing for X.Y.Z+1 development' NEWS.md DESCRIPTION inst
[x] Push the development/X.Y.Z+1 branch to GitHub, create a PR, and let CI run.
[x] Squash-and-merge the PR with the development/X.Y.Z.1 changes back to main.
development/X.Y.Z.1
Release PR: https://github.com/rstudio/packrat/pull/707
GH release (from tag): https://github.com/rstudio/packrat/releases/tag/v0.9.1
Post-release PR: https://github.com/rstudio/packrat/pull/708
Prepare for release
[x] Switch to
main
and pull.[x] Create and switch to a release branch (e.g.
release/<version>
).[x] Update version in
DESCRIPTION
file.[x] Update header and version in
NEWS.md
. confirm recent changes are included. (style reference)[x] Update auto-loaders (from R):
[x] Commit your changes!
[x] Check current CRAN check results: https://cran.rstudio.org/web/checks/check_results_packrat.html
[x] Check that all URLs are valid (from R):
[x] Generate a release
.tar.gz
by running the following command from the parent directory of yourpackrat
repository:[x] Test the package (also from the parent directory):
[x] Push the branch to GitHub and let our CI workflow run.
[x] Fix any issues identified by the previous steps. Rinse and repeat.
Submit to CRAN
[x] Submit to CRAN. Cross fingers. https://cran.r-project.org/
[x] Wait for CRAN approval.
Approved by CRAN
[x] Squash-and-merge the
release/<version>
branch back tomain
.[x] Create a git tag for your new release and push that tag.
[x] Create a GitHub release from the tag and include its NEWS.md items as release notes.
[x] Create a branch to bump for development (e.g.
development/X.Y.Z+1
).[x] Update
NEWS.md
with an "unreleased" version header and run the following command to updateDESCRIPTION
and the auto-loaders:[x] Commit your changes!
[x] Push the
development/X.Y.Z+1
branch to GitHub, create a PR, and let CI run.[x] Squash-and-merge the PR with the
development/X.Y.Z.1
changes back tomain
.