feat: unified ./install.sh script
This commit is contained in:
parent
7f01bec7e6
commit
7f282a59b7
3 changed files with 9 additions and 8 deletions
8
install.sh
Executable file
8
install.sh
Executable 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
|
||||
|
|
@ -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
|
||||
|
|
@ -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",
|
||||
"outputDirectory": "dist"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue