Skip to content

Commit f4478c0

Browse files
committed
fix(native): resolve permission issues in containerized native build
- Add temp directory configuration with proper permissions - Set npm cache to writable location in container - Fix EACCES errors during pnpm install and native compilation
1 parent 48a9b32 commit f4478c0

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

.github/actions/build-native-binaries/action.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -63,6 +63,10 @@ runs:
6363
--env npm_config_target_arch=$npm_config_target_arch \
6464
${{ inputs.container-image }} \
6565
sh -c "
66+
# Ensure npm can write to temp directories
67+
mkdir -p /tmp && chmod 777 /tmp &&
68+
# Set npm cache to writable location
69+
npm config set cache /tmp/.npm --global &&
6670
pnpm install --frozen-lockfile &&
6771
pnpm run build:native &&
6872
echo '✅ Native module compiled successfully'

0 commit comments

Comments
 (0)