Skip to content

Add a new "yarn release-notes" script to generate release notes #14720

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 7 commits into
base: main
Choose a base branch
from

Conversation

anupriya13
Copy link
Contributor

@anupriya13 anupriya13 commented May 31, 2025

Description

Type of Change

Automate release notes creation by adding a new yarn script

Why

To save us some time when generating release notes. Before created it as a github workflow but now moving it to a local script.

Refer #14675 for context

Steps to follow

1. Set up your personal access token

  • Go to GitHub and log in: https://github.com/
  • Click on your profile picture (top-right corner), then click Settings
  • On the left sidebar, click Developer settings
  • Then click Personal access tokens > Tokens (classic)
  • Click Generate new token > Generate new token (classic)
  • Give it a name like "Release Notes Script"
  • Set an expiration (choose less than 90 days)
  • Under Scopes, select the permissions your script needs. For fetching commits and repo info, you typically need:
    repo (full control of private repositories)
    or at least repo:status, repo_deployment, public_repo (for public repos)
  • Click Generate token
  • Find the token you're using (whichever token you created).
  • You should see a message or option to "Grant access to your organization" or "Authorize SAML SSO" for your token.
  • Click that button to authorize the token with the organization.
  • Copy the generated token

2. Set env variables at root of the repo

set GITHUB_TOKEN=<your-personal-access-token>
set RELEASE_TAG=0.79.0
set START_DATE=2025-05-06
set END_DATE=2025-05-30

3. Run "yarn release-notes" at the root of the repo

4. You will see a release-notes.md file generated at packages@rnw-scripts\generate-release-notes\release_notes.md which will have all the data you need.

Screenshots

image

Testing

Tested locally

Changelog

Should this change be included in the release notes: NO

Add a brief summary of the change to use in the release notes for the next release.

@anupriya13 anupriya13 marked this pull request as ready for review May 31, 2025 07:03
@anupriya13 anupriya13 requested review from a team as code owners May 31, 2025 07:03
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant