feat: unified ./install.sh script

This commit is contained in:
Lewis Wynne 2026-01-31 22:52:53 +00:00
parent 7f01bec7e6
commit 7f282a59b7
3 changed files with 9 additions and 8 deletions

8
install.sh Executable file
View file

@ -0,0 +1,8 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
[ -n "$GITHUB_ACCESS_TOKEN" ] && git config --global url."https://${GITHUB_ACCESS_TOKEN}@github.com/".insteadOf "git@github.com:"
git submodule update --init --remote --merge www/src/content
git -C www/src/content checkout main
pnpm install

View file

@ -1,7 +0,0 @@
#!/usr/bin/env bash
set -e
cd "$(dirname "$0")"
git submodule update --remote --merge www/src/content
git -C www/src/content checkout main
git submodule status www/src/content

View file

@ -1,5 +1,5 @@
{ {
"installCommand": "git config --global url.\"https://${GITHUB_ACCESS_TOKEN}@github.com/\".insteadOf \"git@github.com:\" && git submodule update --init --recursive --remote && pnpm install", "installCommand": "./install.sh",
"buildCommand": "pnpm --filter @ily/www build", "buildCommand": "pnpm --filter @ily/www build",
"outputDirectory": "dist" "outputDirectory": "dist"
} }