Skip to content

Commit 6c3190a

Browse files
authored
fix(publish): simplify publish script to prevent CI hangs (#506)
* fix(publish): simplify publish script to prevent CI hangs Remove redundant check/build logic from publish script. The ci:validate script already runs tests, checks, and builds before publish:ci runs. The publish script now only validates artifacts exist and publishes. This fixes potential CI hangs caused by running tests with piped stdio. * style: ignore openapi.json from formatting The auto-generated openapi.json file was causing inconsistent formatting between local and CI environments. Since it's auto-generated, exclude it from formatting.
1 parent 68d1ba6 commit 6c3190a

3 files changed

Lines changed: 78 additions & 253 deletions

File tree

.oxfmtrc.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"bracketSpacing": true,
1414
"singleAttributePerLine": false,
1515
"ignorePatterns": [
16+
"**/openapi.json",
1617
"**/.cache",
1718
"**/.claude",
1819
"**/.DS_Store",

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@
5757
"ci:validate": "node scripts/ci-validate.mjs",
5858
"prepublishOnly": "echo 'ERROR: Use GitHub Actions workflow for publishing' && exit 1",
5959
"publish": "node scripts/publish.mjs",
60-
"publish:ci": "node scripts/publish.mjs --skip-git --skip-build --tag ${DIST_TAG:-latest}",
60+
"publish:ci": "node scripts/publish.mjs --tag ${DIST_TAG:-latest}",
6161
"claude": "node scripts/claude.mjs",
6262
"test": "node scripts/test.mjs",
6363
"type": "tsgo --noEmit -p .config/tsconfig.check.json",

0 commit comments

Comments
 (0)