mirror of
https://github.com/Memo-2023/mana-monorepo.git
synced 2026-05-22 23:06:41 +02:00
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>
18 lines
No EOL
698 B
Bash
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 |