Skip to content

Fix issue with prepublish script#497

Open
Noah Clarke (noahwc) wants to merge 1 commit into
masterfrom
fix-prerelease-publish
Open

Fix issue with prepublish script#497
Noah Clarke (noahwc) wants to merge 1 commit into
masterfrom
fix-prerelease-publish

Conversation

@noahwc
Copy link
Copy Markdown
Contributor

Description of the change

Description here

Type of change

  • Bug fix (non-breaking change that fixes an issue)
  • New feature (non-breaking change that adds functionality)
  • Breaking change (fix or feature that would cause existing functionality to not work as expected)
  • Documentation or Development tools (readme, specs, tests, code formatting)

Links

  • Jira issue number: (PUT IT HERE)
  • Process.st launch checklist: (PUT IT HERE)

Checklists

Development

  • Prettier was run (if applicable)
  • The behaviour changes in the pull request are covered by specs
  • All tests related to the changed code pass in development

Paperwork

  • This pull request has a descriptive title and information useful to a reviewer
  • This pull request has a Jira number
  • This pull request has a Process.st launch checklist

Code review

  • Changes have been reviewed by at least one other engineer
  • Security impacts of this change have been considered

Copilot AI review requested due to automatic review settings May 20, 2026 03:41
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR adjusts the prepublishOnly script for @saasquatch/mint-components to avoid shell parsing issues when the error message includes parentheses, while preserving the intent of blocking direct local npm publish and allowing CI-based publishing.

Changes:

  • Quote the echo message in prepublishOnly so the script runs correctly in POSIX shells when the message contains parentheses.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

"version": "changeset version && npm install",
"release": "changeset publish",
"prepublishOnly": "if [ \"$CI\" != \"true\" ]; then echo Error: Direct npm publish is disabled for @saasquatch/mint-components. Publish via the Mint Components Release (stable) or Publish Package (prerelease) GitHub Actions workflow. && exit 1; fi"
"prepublishOnly": "if [ \"$CI\" != \"true\" ]; then echo 'Error: Direct npm publish is disabled for @saasquatch/mint-components. Publish via the Mint Components Release (stable) or Publish Package (prerelease) GitHub Actions workflow.' && exit 1; fi"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants