Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

packrat: release 0.9.1 #706

Closed
22 tasks done
aronatkins opened this issue Feb 27, 2023 · 3 comments
Closed
22 tasks done

packrat: release 0.9.1 #706

aronatkins opened this issue Feb 27, 2023 · 3 comments
Assignees

Comments

@aronatkins
Copy link
Contributor

aronatkins commented Feb 27, 2023

Prepare for release

  • Switch to main and pull.

    git checkout main
    git pull
  • Create and switch to a release branch (e.g. release/<version>).

    git checkout -b release/0.9.1
  • Update version in DESCRIPTION file.

  • Update header and version in NEWS.md. confirm recent changes are
    included. (style reference)

  • Update auto-loaders (from R):

    source("R/update.R"); updateInit();
  • Commit your changes!

    git commit -m 'preparing for 0.9.1 release' NEWS.md DESCRIPTION inst
  • Check current CRAN check results:
    https://cran.rstudio.org/web/checks/check_results_packrat.html

  • Check that all URLs are valid (from R):

    install.packages("urlchecker")
    urlchecker::url_check()
  • Generate a release .tar.gz by running the following command from the
    parent directory of your packrat repository:

    R CMD build packrat
  • Test the package (also from the parent directory):

    R CMD check --as-cran packrat_*.tar.gz
  • Push the branch to GitHub and let our CI workflow run.

  • Fix any issues identified by the previous steps. Rinse and repeat.

Submit to CRAN

Approved by CRAN

  • Squash-and-merge the release/<version> branch back to main.

  • 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
  • Create a GitHub release from the tag and include its NEWS.md items as
    release notes.

  • Create a branch to bump for development (e.g. development/X.Y.Z+1).

    git checkout main
    git checkout -b development/X.Y.Z+1
  • Update NEWS.md with an "unreleased" version header and run the following
    command to update DESCRIPTION and the auto-loaders:

    R -f configure.R
  • Commit your changes!

    git commit -m 'preparing for X.Y.Z+1 development' NEWS.md DESCRIPTION inst
  • Push the development/X.Y.Z+1 branch to GitHub, create a PR, and let CI
    run.

  • Squash-and-merge the PR with the development/X.Y.Z.1 changes back to main.

@aronatkins aronatkins self-assigned this Feb 27, 2023
aronatkins added a commit that referenced this issue Feb 27, 2023
aronatkins added a commit that referenced this issue Feb 27, 2023
@aronatkins
Copy link
Contributor Author

Release PR: #707

@aronatkins
Copy link
Contributor Author

GH release (from tag): https://github.com/rstudio/packrat/releases/tag/v0.9.1

@aronatkins
Copy link
Contributor Author

Post-release PR: #708

aronatkins added a commit that referenced this issue Feb 27, 2023
aronatkins added a commit that referenced this issue Feb 28, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant