Skip to content

Conversation

nlordell
Copy link
Collaborator

Two things happened at the same time:

  • A deployment was merged that was not correctly formatted
  • prettier -c . was added to the build step

Since we build on prepublish, this was causing npm ci for installing dependencies to fail in GitHub actions and cause our integrations to stop working.

This PR does a few things:

  • Fixes the offending deployment
  • Adds a new workflow that is executed in CI on PRs, to prevent mistakes from happening in the future
  • Changes prepublish to prepare as the former was deprecated in favour of the latter (source)

This should make the prepare_transaction scripts to start working again.

Two things happened at the same time:
- A deployment was merged that was not correctly formatted
- `prettier -c .` was added to the build step

Since we `build` on `prepublish`, this was causing `npm ci` for
installing dependencies to fail in GitHub actions and cause our
integrations to stop working.

This PR does a few things:
- Fixes the offending deployment
- Adds a new workflow that is executed in CI on PRs, to prevent
  mistakes from happening in the future
- Changes `prepublish` to `prepare` as the former was deprecated in
  favour of the latter ([source](https://docs.npmjs.com/cli/v8/using-npm/scripts#prepare-and-prepublish))

This should make the `prepare_transaction` scripts to start working
again.
@nlordell nlordell requested a review from a team as a code owner July 28, 2025 13:38

- run: |
npm ci
npm run build
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

While not technically needed (since npm ci will run the build step), I decided to leave it in because:

  1. It runs super quickly anyway
  2. It makes it so CI does not depend on prepare script doing a build. This allows us to change prepare to prepublishOnly for example without affecting the integrity of the workflow.

Copy link
Member

@remedcu remedcu left a comment

Choose a reason for hiding this comment

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

Small nit, rest LGTM 👍🏾

@nlordell nlordell merged commit 34ef4e7 into main Jul 28, 2025
1 check passed
@nlordell nlordell deleted the fix/fix-ci branch July 28, 2025 15:16
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.

2 participants