-
Notifications
You must be signed in to change notification settings - Fork 199
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
feat: add changeset validation workflow #3067
Conversation
|
Co-authored-by: Kevin Ingersoll <[email protected]>
name: Changeset | ||
|
||
on: | ||
pull_request: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Initially, thought to run workflow only if .changeset/** changes but then realized that package.json of packages may change too, causing changeset validation to fail. So now including all paths, although could still narrow down to .changeset/** and packages/**/package.json?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sounds reasonable to run as-needed (just for changeset + package.json changes) although may also need to consider the pnpm-workspace.yaml
(could change the scope what are considered workspace packages) and ~any package.json
(e.g. **/package.json
)
but also running it for every commit is fine too, should be lightweight enough to not matter much
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps then best to not restrict any paths since it is indeed lightweight, and don't want to miss anything accidentally.
uses: ./.github/actions/setup | ||
|
||
- name: Changeset | ||
run: pnpm changeset status --since origin/main |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Have to do it like this due to base branch set as main
. Relevant issue: changesets/changesets#1055
No description provided.