Skip to content

Commit

Permalink
fix: make changelog script work with multiline changeset (#2505)
Browse files Browse the repository at this point in the history
* fix: make changelog script work with multiline changeset

* docs: add changeset file example
  • Loading branch information
massao authored Jun 16, 2023
1 parent c0e9fa7 commit 139a96a
Show file tree
Hide file tree
Showing 4 changed files with 131 additions and 113 deletions.
110 changes: 55 additions & 55 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,38 +19,38 @@ The Changelog gives an overview of the changes we've made to Forma 36
**F36 Button** `v4.42.0`

- feat(button): restyle negative variant
feat(textarea): change hue of invalid border color
feat(validation-message): change hue of negative color
feat(icon): change hue of negative color
feat(icon): change hue of positive color
feat(tokens): change hue of semantic colors
- feat(textarea): change hue of invalid border color
- feat(validation-message): change hue of negative color
- feat(icon): change hue of negative color
- feat(icon): change hue of positive color
- feat(tokens): change hue of semantic colors

**F36 Forms** `v4.42.0`

- feat(button): restyle negative variant
feat(textarea): change hue of invalid border color
feat(validation-message): change hue of negative color
feat(icon): change hue of negative color
feat(icon): change hue of positive color
feat(tokens): change hue of semantic colors
- feat(textarea): change hue of invalid border color
- feat(validation-message): change hue of negative color
- feat(icon): change hue of negative color
- feat(icon): change hue of positive color
- feat(tokens): change hue of semantic colors

**F36 Icon** `v4.42.0`

- feat(button): restyle negative variant
feat(textarea): change hue of invalid border color
feat(validation-message): change hue of negative color
feat(icon): change hue of negative color
feat(icon): change hue of positive color
feat(tokens): change hue of semantic colors
- feat(textarea): change hue of invalid border color
- feat(validation-message): change hue of negative color
- feat(icon): change hue of negative color
- feat(icon): change hue of positive color
- feat(tokens): change hue of semantic colors

**F36 Tokens** `v4.0.2`

- feat(button): restyle negative variant
feat(textarea): change hue of invalid border color
feat(validation-message): change hue of negative color
feat(icon): change hue of negative color
feat(icon): change hue of positive color
feat(tokens): change hue of semantic colors
- feat(textarea): change hue of invalid border color
- feat(validation-message): change hue of negative color
- feat(icon): change hue of negative color
- feat(icon): change hue of positive color
- feat(tokens): change hue of semantic colors

## 01-06-2023

Expand Down Expand Up @@ -194,7 +194,7 @@ The Changelog gives an overview of the changes we've made to Forma 36
**F36 Badge** `v4.30.1`

- feat(badge): fix letter case
feat(entity-status-badge): fix letter case
- feat(entity-status-badge): fix letter case

**F36 Table** `v4.30.2`

Expand All @@ -205,17 +205,17 @@ The Changelog gives an overview of the changes we've made to Forma 36
**F36 Icons** `v4.25.0`

- feat(environment): update icon
feat(environment-alias): update icon
feat(sort-ascending): new icon
feat(sort-descending): new icon
feat(sort): new icon
- feat(environment-alias): update icon
- feat(sort-ascending): new icon
- feat(sort-descending): new icon
- feat(sort): new icon

## 14-03-2023

**F36 Menu** `v4.29.0`

- feat(menu): new look and feel
feat(menu-item): add `isActive` and `isDisabled` props
- feat(menu-item): add `isActive` and `isDisabled` props

**F36 Table** `v4.30.0`

Expand Down Expand Up @@ -493,12 +493,12 @@ The Changelog gives an overview of the changes we've made to Forma 36
**F36 Button** `v4.21.2`

- feat(button): allow icon variant for transparent buttons
fix(datepicker): change calendar button icon variant
- fix(datepicker): change calendar button icon variant

**F36 Datepicker** `v4.21.2`

- feat(button): allow icon variant for transparent buttons
fix(datepicker): change calendar button icon variant
- fix(datepicker): change calendar button icon variant

## 26-10-2022

Expand Down Expand Up @@ -577,137 +577,137 @@ The Changelog gives an overview of the changes we've made to Forma 36
**F36 Accordion** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Asset** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Autocomplete** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Badge** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Button** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Card** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Collapse** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Copybutton** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Datepicker** `v4.2.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Datetime** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Drag Handle** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Entity List** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Forms** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Icon** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Icons** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 List** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Menu** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Modal** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Note** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Notification** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Pagination** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Pill** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Popover** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Skeleton** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Spinner** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Table** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Tabs** `v4.19.1`

- build: build ESM to JS file - legacy output
fix(notification): use type imports
- fix(notification): use type imports

**F36 Datepicker** `v4.2.2`

Expand Down
15 changes: 15 additions & 0 deletions RELEASES.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Our CI is configured to automatically bump the version and publish the packages
## Adding changesets

We use the `changeset-bot` to comment on PRs when a changeset is found or not.

Note that each line in the description will be renderd as a bullet point on our changelog.

In case the change you are making is only on documentation or you don't want to publish a new package version for the change, you don't need to do anything and can merge the PR once it's approved.

But in case you want a new version to be published, you will need to add a changeset, for that you can:
Expand All @@ -19,6 +22,18 @@ But in case you want a new version to be published, you will need to add a chang
- `changeset-bot` will show that information in its comment on the PR.
- when the PR is merged it will trigger the release job on our CI and a new version will be published.

Changesets files should be structured like:

```
---
"@contentful/package-name": version change (minor, patch, major)
"@contentful/another-package": version change (minor, patch, major)
---
- Description of what has changed
- Another change
```

## Fixed versioning

We use the fixed packages approach from changeset on all our component packages, and the umbrella package (`@contentful/f36-components`), the fixed packages as described on changesets documentation:
Expand Down
Loading

1 comment on commit 139a96a

@vercel
Copy link

@vercel vercel bot commented on 139a96a Jun 16, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.