Skip to content

Commit cbe3529

Browse files
committed
fix(ci): case-insensitive grep for npm duplicate version error
npm error message starts with "You cannot publish over..." but the grep pattern was matching lowercase "cannot". Added -i flag for case-insensitive matching. Bumped to v0.0.7.
1 parent fe56aff commit cbe3529

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mint-tsdocs",
3-
"version": "0.0.6",
3+
"version": "0.0.7",
44
"description": "Generate Mintlify-compatible MDX code reference from TypeScript.",
55
"author": "svallory",
66
"license": "MIT",

scripts/publish-alias.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ fs.writeFileSync('package.json', JSON.stringify(pkg, null, 2) + '\n');
2222

2323
# Publish the wrapper package (tolerate "already published" errors from npm race conditions)
2424
npm publish --provenance --access public 2>&1 | tee /tmp/npm-publish-alias.log || {
25-
if grep -q "cannot publish over the previously published versions" /tmp/npm-publish-alias.log; then
25+
if grep -qi "cannot publish over the previously published versions" /tmp/npm-publish-alias.log; then
2626
echo "Version $VERSION already published — treating as success"
2727
else
2828
exit 1

0 commit comments

Comments
 (0)