diff --git a/packages/extension/package.json b/packages/extension/package.json index d97afe214..f2d6e06b2 100644 --- a/packages/extension/package.json +++ b/packages/extension/package.json @@ -28,7 +28,7 @@ "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore --log-level error", "publish:preview": "yarn npm publish --tag preview", - "postinstall": "yarn playwright install chromium", + "postinstall": "../../scripts/playwright-install.sh", "start": "./scripts/start.sh", "test": "vitest run --config vitest.config.ts", "test:build": "tsx ./test/build/build-tests.ts", diff --git a/packages/omnium-gatherum/package.json b/packages/omnium-gatherum/package.json index b7231507a..86c010863 100644 --- a/packages/omnium-gatherum/package.json +++ b/packages/omnium-gatherum/package.json @@ -29,7 +29,7 @@ "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore --log-level error", "publish:preview": "yarn npm publish --tag preview", - "postinstall": "yarn playwright install chromium", + "postinstall": "../../scripts/playwright-install.sh", "start": "./scripts/start.sh", "test": "vitest run --config vitest.config.ts", "test:build": "tsx ./test/build/build-tests.ts", diff --git a/packages/streams/package.json b/packages/streams/package.json index 8abe3154b..4adf4d634 100644 --- a/packages/streams/package.json +++ b/packages/streams/package.json @@ -60,7 +60,7 @@ "lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn constraints --fix && yarn lint:dependencies", "lint:misc": "prettier --no-error-on-unmatched-pattern '**/*.json' '**/*.md' '**/*.html' '!**/CHANGELOG.old.md' '**/*.yml' '!.yarnrc.yml' '!merged-packages/**' --ignore-path ../../.gitignore --log-level error", "publish:preview": "yarn npm publish --tag preview", - "postinstall": "yarn playwright install chromium", + "postinstall": "../../scripts/playwright-install.sh", "test": "vitest run --config vitest.config.ts", "test:clean": "yarn test --no-cache --coverage.clean", "test:dev": "yarn test --mode development --reporter dot", diff --git a/scripts/playwright-install.sh b/scripts/playwright-install.sh new file mode 100755 index 000000000..b6b7cb4b1 --- /dev/null +++ b/scripts/playwright-install.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +# Skip in Dependabot PRs (native builds aren't needed and may fail) +if [ "$GITHUB_ACTOR" = "dependabot[bot]" ]; then + echo "⏭️ Skipping native rebuild in Dependabot PR" + exit 0 +fi + +yarn playwright install chromium diff --git a/scripts/rebuild-native.sh b/scripts/rebuild-native.sh index 74f9ccda3..119e36f3d 100755 --- a/scripts/rebuild-native.sh +++ b/scripts/rebuild-native.sh @@ -4,6 +4,12 @@ # This checks if artifacts already exist to avoid unnecessary rebuilds. # Pass --force or -f to rebuild even if build artifacts already exist. +# Skip in Dependabot PRs (native builds aren't needed and may fail) +if [ "$GITHUB_ACTOR" = "dependabot[bot]" ]; then + echo "⏭️ Skipping native rebuild in Dependabot PR" + exit 0 +fi + # Track if any builds fail BUILD_FAILED=0