-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Support pre-patch version, new versioning scheme starting at 99…
…00 (#794)
- Loading branch information
Showing
6 changed files
with
85 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
--- | ||
title: "Automate CRAN releases v2" | ||
output: rmarkdown::html_vignette | ||
vignette: > | ||
%\VignetteIndexEntry{cran-automation-2} | ||
%\VignetteEngine{knitr::rmarkdown} | ||
%\VignetteEncoding{UTF-8} | ||
--- | ||
|
||
```{r, include = FALSE} | ||
knitr::opts_chunk$set( | ||
collapse = TRUE, | ||
comment = "#>" | ||
) | ||
``` | ||
|
||
## Goals, and how achieved | ||
|
||
1. Avoid conflicts in `NEWS.md` and `DESCRIPTION` | ||
- Bumping to CRAN version and back to dev version is atomic, no dangling release branch | ||
- Support for subsequent release attempts off of a branch created from a tag | ||
|
||
2. Easy to undo a release attempt | ||
- Pre-flight with `init_release("pre-patch")`, including grooming of `NEWS.md` | ||
- Caveat: once committed to a release, there is no way back, to avoid conflicts | ||
|
||
3. More rigorous checks before release | ||
- On GitHub Actions for branches that start with `cran-` | ||
- Locally through `urlchecker::url_update()`, `devtools::check_win_devel()`, and `rhub::check_for_cran()` | ||
- TODO: Compatibility with `usethis::use_release_issue()` | ||
|
||
4. Minimize interactive wait time | ||
- Checks run on GitHub Actions for branches that start with `cran-` | ||
- TODO: Use background jobs via `job::empty()` where useful | ||
|
||
5. Compatibility with auto-merge and merge queues | ||
- GHA workflow | ||
|
||
6. Support merge and squash commits | ||
- We can always create a tag | ||
- PR merge is triggered by user | ||
|
||
7. Support for dev version header | ||
- TODO: Composable workflow, grooming can be separate from release | ||
|
||
8. Compatibility with manual release workflow | ||
- `init_release("pre-patch")` | ||
|
||
9. Consistency with `usethis::use_release_issue()` | ||
- TODO: snapshot tests for `usethis:::release_checklist()`, maintain own list | ||
|
||
## Non-goals | ||
|
||
1. Always release from main branch | ||
- Conflicts with important goal to avoid conflicts, and also with auto-merge and merge queues | ||
- Release from main branch possible in some cases |