diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8aed232f..af3b310b 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,12 @@ jobs: shell: bash run: | PNPM_STORE="$(pnpm store path)" - find "$PNPM_STORE" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + PNPM_BIN_DIR="$(dirname "$(command -v pnpm)")" + for path in "$PNPM_STORE" "${PNPM_HOME:-}" "$PNPM_BIN_DIR"; do + if [ -d "$path" ]; then + find "$path" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + fi + done - name: Install dependencies run: pnpm install --frozen-lockfile @@ -341,7 +346,12 @@ jobs: - name: Restore pnpm node-gyp executable bit run: | PNPM_STORE="$(pnpm store path)" - find "$PNPM_STORE" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + PNPM_BIN_DIR="$(dirname "$(command -v pnpm)")" + for path in "$PNPM_STORE" "${PNPM_HOME:-}" "$PNPM_BIN_DIR"; do + if [ -d "$path" ]; then + find "$path" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + fi + done - name: Install dependencies run: pnpm install --frozen-lockfile @@ -461,7 +471,12 @@ jobs: shell: bash run: | PNPM_STORE="$(pnpm store path)" - find "$PNPM_STORE" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + PNPM_BIN_DIR="$(dirname "$(command -v pnpm)")" + for path in "$PNPM_STORE" "${PNPM_HOME:-}" "$PNPM_BIN_DIR"; do + if [ -d "$path" ]; then + find "$path" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + fi + done - name: Install dependencies run: pnpm install --frozen-lockfile @@ -585,7 +600,12 @@ jobs: - name: Restore pnpm node-gyp executable bit run: | PNPM_STORE="$(pnpm store path)" - find "$PNPM_STORE" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + PNPM_BIN_DIR="$(dirname "$(command -v pnpm)")" + for path in "$PNPM_STORE" "${PNPM_HOME:-}" "$PNPM_BIN_DIR"; do + if [ -d "$path" ]; then + find "$path" -path '*/node-gyp/gyp/gyp_main.py' -exec chmod +x {} \; 2>/dev/null || true + fi + done - name: Install dependencies run: pnpm install --frozen-lockfile