Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Debug update template script #3604

Merged
merged 2 commits into from
Jan 28, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/lovely-baboons-suffer.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Bump version
5 changes: 5 additions & 0 deletions .changeset/rotten-wasps-beam.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

And again
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"check": "pnpm -r check",
"lint": "pnpm -r lint",
"format": "pnpm -r format",
"release": "changeset publish",
"release": "pnpm -r publish",
"preview:docs": "action-deploy-docs --project=kit"
},
"repository": {
Expand Down
3 changes: 3 additions & 0 deletions packages/create-svelte/scripts/update-template-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,16 @@ mkdir -p $TMP
cd $TMP

if [ "$CI" ]; then
echo ">>> setting git config"
(umask 0077; echo "$UPDATE_TEMPLATE_SSH_KEY" > ~/ssh_key;)
git config user.email 'noreply@svelte.dev'
git config user.name '[bot]'

export GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=accept-new -i ~/ssh_key'
fi

echo "GIT_SSH_COMMAND: $GIT_SSH_COMMAND"

# clone the template repo
rm -rf kit-template-default
git clone --depth 1 --single-branch --branch main git@github.com:sveltejs/kit-template-default.git kit-template-default
Expand Down