|
4 | 4 | - [Regular or Hotfix?](#regular-or-hotfix) |
5 | 5 | - [Create Github Issue and Release Branch](#create-github-issue-and-release-branch) |
6 | 6 | - [Update the version](#update-the-version) |
| 7 | +- [Update the changelog](#update-the-changelog) |
7 | 8 | - [Merge "release branch" into "main"](#merge-release-branch-into-main) |
8 | 9 | - [Publish the Dataverse Client Javascript package](#publish-the-dataverse-client-javascript-package) |
9 | 10 | - [Create a Draft Release on GitHub and Tag the Version](#create-a-draft-release-on-github-and-tag-the-version) |
@@ -40,6 +41,51 @@ npm version 3.5.0 --no-git-tag-version |
40 | 41 |
|
41 | 42 | This command will update the version in the `package.json` and `package-lock.json`. |
42 | 43 |
|
| 44 | +## Update the changelog |
| 45 | + |
| 46 | +**Note**: Contributors should have already added their changes to the `[Unreleased]` section as part of their pull requests (see [CONTRIBUTING.md](../.github/CONTRIBUTING.md#changelog-guidelines) for details). |
| 47 | + |
| 48 | +Before releasing, ensure the changelog is properly prepared: |
| 49 | + |
| 50 | +1. **Review the [Unreleased] section** in `CHANGELOG.md` and `packages/design-system/CHANGELOG.md` |
| 51 | +2. **Move entries from [Unreleased] to the new version section**: |
| 52 | + |
| 53 | + ```markdown |
| 54 | + ## [vX.X.X] -- YYYY-MM-DD |
| 55 | + |
| 56 | + ### Added |
| 57 | + |
| 58 | + - Feature descriptions from unreleased section |
| 59 | + |
| 60 | + ### Changed |
| 61 | + |
| 62 | + - Changes from unreleased section |
| 63 | + |
| 64 | + ### Fixed |
| 65 | + |
| 66 | + - Bug fixes from unreleased section |
| 67 | + |
| 68 | + ### Removed |
| 69 | + |
| 70 | + - Removals from unreleased section |
| 71 | + ``` |
| 72 | + |
| 73 | +3. **Clear the [Unreleased] section** but keep the structure: |
| 74 | + |
| 75 | + ```markdown |
| 76 | + ## [Unreleased] |
| 77 | + |
| 78 | + ### Added |
| 79 | + |
| 80 | + ### Changed |
| 81 | + |
| 82 | + ### Fixed |
| 83 | + |
| 84 | + ### Removed |
| 85 | + ``` |
| 86 | + |
| 87 | +4. **Commit the changelog updates** as part of the release preparation |
| 88 | + |
43 | 89 | If everything looks good, you can push the changes to the repository. |
44 | 90 |
|
45 | 91 | ## Merge "release branch" into "main" |
@@ -96,7 +142,7 @@ Go to https://github.com/IQSS/dataverse-client-javascript/releases/new to start |
96 | 142 |
|
97 | 143 | - Under "Release title" use the same name as the tag such as v3.5.0. |
98 | 144 |
|
99 | | -- Add a description of the changes included in this release. You should include a link to the recently published npm version and summarize the key updates, fixes, or features. |
| 145 | +- Add a description of the changes included in this release. You should include a link to the recently published npm version and summarize the key updates, fixes, or features. You can copy the content from the corresponding version section in `CHANGELOG.md` for consistency. |
100 | 146 |
|
101 | 147 | - Click "Save draft" because we do not want to publish the release yet. |
102 | 148 |
|
|
0 commit comments