|
| 1 | +--- |
| 2 | +name: 🎉 CRAN Release |
| 3 | +description: Template for release to CRAN |
| 4 | +title: "[CRAN Release]: <version>" |
| 5 | +labels: ["release"] |
| 6 | +assignees: |
| 7 | + - KlaudiaBB |
| 8 | + - cicdguy |
| 9 | +body: |
| 10 | + - type: markdown |
| 11 | + attributes: |
| 12 | + value: | |
| 13 | + ⚠️ Please do not link or mention any internal references in this issue. This includes internal URLs, intellectual property and references. |
| 14 | + - type: textarea |
| 15 | + id: blocked-by |
| 16 | + attributes: |
| 17 | + label: Blocked by |
| 18 | + description: Any PRs or issues that this release is blocked by. |
| 19 | + placeholder: Add a list of blocking PRs or issues here. |
| 20 | + value: | |
| 21 | + #### PRs |
| 22 | + - [ ] PR 1 |
| 23 | +
|
| 24 | + #### Issues |
| 25 | + - [ ] Issue 1 |
| 26 | + validations: |
| 27 | + required: true |
| 28 | + - type: textarea |
| 29 | + id: pre-release |
| 30 | + attributes: |
| 31 | + label: Pre-release |
| 32 | + description: Pre-requisites that must be fulfilled before initiating the release process. |
| 33 | + placeholder: Add your list of pre-requisites here. |
| 34 | + value: | |
| 35 | + - [ ] Make sure you adhere to CRAN submission policy: |
| 36 | + * https://cran.r-project.org/web/packages/submission_checklist.html |
| 37 | + * https://cran.r-project.org/web/packages/policies.html. |
| 38 | + - [ ] Make sure that high priority bugs (label "priority" + "bug") have been resolved before going into the release. |
| 39 | + - [ ] Review old/hanging PRs before going into the release (Optional). |
| 40 | + - [ ] Revisit R-package's lifecycle badges (Optional). |
| 41 | + - [ ] Make sure that all upstream dependencies of this package that need to be submitted to CRAN were accepted before going into release activities. |
| 42 | + - [ ] Make sure integration tests are green 2-3 days before the release. Look carefully through logs (check for warnings and notes). |
| 43 | + - [ ] Decide what gets merged in before starting release activities. |
| 44 | + - type: textarea |
| 45 | + id: release |
| 46 | + attributes: |
| 47 | + label: Release |
| 48 | + description: The steps to be taken in order to create a release. |
| 49 | + placeholder: Steps to create a release. |
| 50 | + value: | |
| 51 | + #### Prepare the release |
| 52 | + - [ ] Create a new release candidate branch |
| 53 | + `git checkout -b release-candidate-vX.Y.Z` |
| 54 | + - [ ] Update NEWS.md file: make sure it reflects a holistic summary of what has changed in the package. |
| 55 | + - [ ] Remove the additional fields (`Remotes`) from the DESCRIPTION file where applicable. |
| 56 | + - [ ] Make sure that the minimum dependency versions are updated in the DESCRIPTION file for the package and its reverse dependencies (Optional). |
| 57 | + - [ ] Increase versioned dependency on {package name} to >=X.Y.Z (Optional). |
| 58 | + - [ ] Commit your changes and create the PR on GitHub (add "[skip vbump]" in the PR title). Add all updates, commit, and push changes: |
| 59 | + ```r |
| 60 | + # Make the necessary modifications to your files |
| 61 | + # Stage the changes |
| 62 | + git add <files your modified> |
| 63 | + # Commit the changes |
| 64 | + git commit -m "[skip vbump] <Your commit message>" |
| 65 | + git push origin release-candidate-vX.Y.Z` |
| 66 | + ``` |
| 67 | +
|
| 68 | +
|
| 69 | + #### Test the release |
| 70 | + - [ ] Execute the manual tests on Shiny apps that are deployed on various hosting providers (Posit connect and shinyapps.io) - track the results in GitHub issue (Applicable only for frameworks that use Shiny). |
| 71 | + - [ ] Monitor integration tests, if integration fails, create priority issues on the board. |
| 72 | + - [ ] Execute UAT tests (Optional). |
| 73 | +
|
| 74 | + #### CRAN submission |
| 75 | + - [ ] Tag the update(s) as a release candidate vX.Y.Z-rc<iteration-number> (e.g. v0.5.3-rc1) on the release candidate branch (release-candidate-vX.Y.Z). |
| 76 | + ```r |
| 77 | + # Create rc tag for submission for internal validation |
| 78 | + git tag vX.Y.Z-rc<iteration number> |
| 79 | + git push origin vX.Y.Z-rc<iteration number> |
| 80 | + ``` |
| 81 | + - [ ] Build the package locally using the command:`R CMD build .` which will generate a .tar.gz file necessary for the CRAN submission. |
| 82 | + - [ ] Submit the package to https://win-builder.r-project.org/upload.aspx for testing, for more details please see "Building and checking R source packages for Windows": https://win-builder.r-project.org/. |
| 83 | + - [ ] Once tested, send the package that was built in the previous steps to CRAN via this form: https://cran.r-project.org/submit.html. |
| 84 | + - [ ] Address CRAN feedback, tag the package vX.Y.Z-rc(n+1) and repeat the submission to CRAN whenever necessary. |
| 85 | + - [ ] Get the package accepted and published on CRAN. |
| 86 | +
|
| 87 | + #### Tag the release |
| 88 | + - [ ] If the additional fields were removed, add them back in a separate PR, and then merge the PR back to main (add "[skip vbump]" in the PR title). If nothing was removed just merge the PR you created in the "Prepare the release" section to 'main'. Note the commit hash of the merged commit. **Note:** additional commits might be added to the `main` branch by a bot or an automation - we do **NOT** want to tag this commit. |
| 89 | +
|
| 90 | + ##### Make sure of the following before continuing |
| 91 | + - [ ] CI checks are passing in GH before releasing the package. |
| 92 | + - [ ] Shiny apps are deployable and there are no errors/warnings (Applicable only for frameworks that use Shiny). |
| 93 | +
|
| 94 | + - [ ] Create a git tag with the final version set to vX.Y.Z on the main branch. In order to do this: |
| 95 | + 1. Checkout the commit hash. |
| 96 | + `git checkout <commit hash>` |
| 97 | + 2. Tag the hash with the release version (vX.Y.Z). |
| 98 | + `git tag vX.Y.Z` |
| 99 | + 3. Push the tag to make the final release. |
| 100 | + `git push origin vX.Y.Z` |
| 101 | + - [ ] Update downstream package dependencies to (>=X.Y.Z) in {package name}. |
| 102 | + **Note:** Once the release tag is created, the package is automatically published to internal repositories. |
| 103 | + - type: textarea |
| 104 | + id: post-release |
| 105 | + attributes: |
| 106 | + label: Post-release |
| 107 | + description: The list of activities to be completed after the release. |
| 108 | + placeholder: The steps that must be taken after the release. |
| 109 | + value: | |
| 110 | + - [ ] Ensure that CRAN checks are passing for the package. |
| 111 | + - [ ] Make sure that the package is published to internal repositories. |
| 112 | + - [ ] Make sure internal documentation is up to date. |
| 113 | + - [ ] Review and update installation instructions for the package wherever needed (Optional). |
| 114 | + - [ ] Announce the release on ________. |
| 115 | + - type: textarea |
| 116 | + id: decision-tree |
| 117 | + attributes: |
| 118 | + label: Decision tree |
| 119 | + description: Any decision tree(s) that would aid release management |
| 120 | + placeholder: Any decision tree(s) that would aid release management. |
| 121 | + value: | |
| 122 | + Click [here](https://github.com/insightsengineering/.github/blob/main/.github/ISSUE_TEMPLATE/RELEASE_DECISION_TREE.md) to see the release decision tree. |
0 commit comments