managarten/maerchenzauber/apps/mobile/eas-build-pre-install.sh
Till-JS e7f5f942f3 chore: initial commit - consolidate 4 projects into monorepo
Projects included:
- maerchenzauber (NestJS backend + Expo mobile + SvelteKit web + Astro landing)
- manacore (Expo mobile + SvelteKit web + Astro landing)
- manadeck (NestJS backend + Expo mobile + SvelteKit web)
- memoro (Expo mobile + SvelteKit web + Astro landing)

This commit preserves the current state before monorepo restructuring.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
2025-11-22 23:38:24 +01:00

18 lines
No EOL
698 B
Bash

#!/bin/bash
# EAS Build Pre-Install Hook
# This script configures npm to use GitHub token for private packages
if [ -n "$GITHUB_TOKEN" ]; then
echo "Configuring npm for private GitHub packages..."
echo "//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}" >> ~/.npmrc
echo "@mana-core:registry=https://npm.pkg.github.com/" >> ~/.npmrc
# Alternative: Use HTTPS URL with token
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "git@github.com:"
git config --global url."https://${GITHUB_TOKEN}@github.com/".insteadOf "ssh://git@github.com/"
echo "npm configuration complete"
else
echo "Warning: GITHUB_TOKEN not set, private packages may fail to install"
fi