diff --git a/.github/workflows/unit-tests-workflow.yml b/.github/workflows/unit-tests-workflow.yml index f9a9265b1..b733e9584 100644 --- a/.github/workflows/unit-tests-workflow.yml +++ b/.github/workflows/unit-tests-workflow.yml @@ -8,7 +8,6 @@ on: - "**" env: OPENSEARCH_DASHBOARDS_VERSION: 'main' - HUSKY: 0 jobs: Get-CI-Image-Tag: uses: opensearch-project/opensearch-build/.github/workflows/get-ci-image-tag.yml@main diff --git a/package.json b/package.json index 023cd17d6..9a0730f05 100644 --- a/package.json +++ b/package.json @@ -24,7 +24,7 @@ "build": "yarn plugin-helpers build", "plugin-helpers": "node ../../scripts/plugin_helpers", "postbuild": "echo Renaming build artifact to [$npm_package_config_id-$npm_package_version.zip] && mv build/$npm_package_config_id*.zip build/$npm_package_config_id-$npm_package_version.zip", - "postinstall": "husky install" + "postinstall": "node -e \"const { execSync } = require('child_process');const { INIT_CWD, PWD = process.cwd() } = process.env;if (INIT_CWD?.startsWith?.(PWD)) {try {execSync('husky install');} catch (e) {}}\"" }, "devDependencies": { "@babel/plugin-transform-modules-commonjs": "^7.22.9",