Skip to content

Commit 1e89477

Browse files
committed
fix: make yalc push optional in build script for CI compatibility
The build script was failing in CI due to yalc compatibility issues with Node.js, even though the actual pack-up build succeeds. Changed the build command to make yalc push non-fatal using `|| true`. This allows CI builds to succeed while preserving yalc functionality for local development with the playground. The yalc push is only needed for linking the plugin to the local playground during development, not for CI/CD or production builds.
1 parent 1ea62f8 commit 1e89477

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
"scripts": {
3232
"develop": "strapi-plugin watch:link",
3333
"watch": "pack-up watch",
34-
"build": "pack-up build && yalc push --publish",
34+
"build": "pack-up build && (yalc push --publish || true)",
3535
"eslint": "eslint --max-warnings=0 './**/*.{js,jsx}'",
3636
"eslint:fix": "eslint --fix './**/*.{js,jsx}'",
3737
"test:unit": "jest --verbose",

0 commit comments

Comments
 (0)