Skip to content

CI / package fixes - #421

Merged
joecarver merged 3 commits into
mainfrom
joe/fix-ci
Sep 22, 2026
Merged

joecarver merged 3 commits into
mainfrom
joe/fix-ci

Conversation

@joecarver

Copy link
Copy Markdown
Contributor

A few small changes which I'm hoping will fix CI:

  • remove git add . from pre-commit hook
    • this one won't fix anything but I don't think we want to enforce committing every change at once?
  • update the pinned pnpm version
    • also regenerated the lockfile and had to pin a couple of dependencies as a result here
  • make github actions use the same pnpm version (via pnpm/action-setup)

@joecarver
joecarver requested a review from a team September 22, 2026 09:38
@joecarver
joecarver changed the base branch from jess/add-stripe-fee-ref to main September 22, 2026 10:11
Comment thread .husky/pre-commit
fi

pnpm check && pnpm fix
git add .

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

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

I think the intent here was to catch any built or fixed files, but I agree this is wrong and not desirable.

We should probably take a closer look at better aligning this to conventions we use elsewhere (e.g. using lint-staged)

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this repo, the pre-commit hook handles building both the JSON schemas and examples from types - which is what the git add . is typically catching here. Without this step, I think we'd absolutely experience drift between types and generated JSONs (especially with external contributors, etc).

I'll try adding this back in a future PR.

@joecarver
joecarver merged commit 34f9150 into main Sep 22, 2026

@jessicamcinchak jessicamcinchak left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

Thanks for spotting and fixing out-of-date PNPM versions here !!

Comment thread .husky/pre-commit
fi

pnpm check && pnpm fix
git add .

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

In this repo, the pre-commit hook handles building both the JSON schemas and examples from types - which is what the git add . is typically catching here. Without this step, I think we'd absolutely experience drift between types and generated JSONs (especially with external contributors, etc).

I'll try adding this back in a future PR.

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.

3 participants