From 024b9c481cafeef8b87d906de823a996944c5dd2 Mon Sep 17 00:00:00 2001 From: 777genius Date: Sun, 31 May 2026 21:06:03 +0300 Subject: [PATCH] fix(ci): restore release node-gyp chmod paths --- .github/workflows/release.yml | 28 ++++++++++++++++++++++++---- 1 file changed, 24 insertions(+), 4 deletions(-) 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