Skip to content

Commit

Permalink
Debug update template script (#3604)
Browse files Browse the repository at this point in the history
* use pnpm publish

* debug update template script
  • Loading branch information
Rich-Harris authored Jan 28, 2022
1 parent 6d24038 commit ff27168
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
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
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

0 comments on commit ff27168

Please sign in to comment.