Skip to content

add @changesets/changelog-github for better changelogs #589

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

Open
wants to merge 13 commits into
base: main
Choose a base branch
from

Conversation

turnekybc
Copy link
Contributor

@turnekybc turnekybc commented Apr 10, 2025

Summary & Motivation

Created a release workflow via GitHub Action which will

  • check for a specific label on the pull request in order to initiate the workflow
    • once we are comfortable with the workflow I will change the workflow to run on tag push to main e.g. release tags
  • build the SDK artifacts
  • test in preprod
  • test in prod
  • publish ONLY @turnkey/sdk-types for the time being as we test the workflow
    • the environment: production flag will pause the workflow at the publish step and will require a manual approval before performing the actual publish step

With @changesets/changelog-github, it includes GitHub PR and author links if run in CI with a GITHUB_TOKEN.

The new changelog format will look like this:

# my-package

## 1.1.0
### Minor Changes
- Added support for dark mode (#123) via @yourusername

How I Tested These Changes

Did you add a changeset?

If updating one of our packages, you'll likely need to add a changeset to your PR. To do so, run pnpm changeset. pnpm changeset will generate a file where you should write a human friendly message about the changes. Note how this (example) includes the package name (should be auto added by the command) along with the type of semver change (major.minor.patch) (which you should set).

These changes will be used at release time to determine what packages to publish and how to bump their version. For more context see this comment.

Copy link

vercel bot commented Apr 10, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

2 Skipped Deployments
Name Status Preview Comments Updated (UTC)
sdk-email-auth ⬜️ Skipped (Inspect) Apr 19, 2025 10:50pm
sdk-otp-auth ⬜️ Skipped (Inspect) Apr 19, 2025 10:50pm

Copy link

codesandbox-ci bot commented Apr 10, 2025

This pull request is automatically built and testable in CodeSandbox.

To see build info of the built libraries, click here or the icon next to each commit SHA.

Latest deployment of this branch, based on commit 16fbce8:

Sandbox Source
@turnkey/example-react-components Configuration

Copy link

socket-security bot commented Apr 10, 2025

Review the following changes in direct dependencies. Learn more about Socket for GitHub.

Diff Package Supply Chain
Security
Vulnerability Quality Maintenance License
Added@​changesets/​changelog-github@​0.5.11001006582100
Addedtypescript@​5.4.310010089100100

View full report

uses: changesets/action@06245a4e0a36c064a573d4150030f5ec548e4fcc # v1.4.10
with:
version: pnpm run changeset version # Updates versions and changelog
# publish: pnpm run changeset publish # Publishes to npm
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we want to do anything with this comment?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated this to be used in the publish flow

# publish: pnpm run changeset publish # Publishes to npm
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # For changelog links
# NPM_TOKEN: ${{ secrets.NPM_TOKEN }} # For npm publish
Copy link
Collaborator

Choose a reason for hiding this comment

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

And this one?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

updated this to be used in the publish flow

@vercel vercel bot temporarily deployed to Preview – sdk-email-auth April 19, 2025 22:50 Inactive
@vercel vercel bot temporarily deployed to Preview – sdk-otp-auth April 19, 2025 22:50 Inactive
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
run-ci-release Run release workflow via GitHub Action
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants