From fca7bb00707b71381314bf94856856f4d9266ed1 Mon Sep 17 00:00:00 2001 From: Rich Harris Date: Fri, 28 Jan 2022 18:05:02 -0500 Subject: [PATCH] aosfdnasf (#3608) --- .changeset/cuddly-ravens-carry.md | 5 +++++ .../create-svelte/scripts/update-template-repo.sh | 11 +++++------ 2 files changed, 10 insertions(+), 6 deletions(-) create mode 100644 .changeset/cuddly-ravens-carry.md diff --git a/.changeset/cuddly-ravens-carry.md b/.changeset/cuddly-ravens-carry.md new file mode 100644 index 000000000000..e78ca8b30696 --- /dev/null +++ b/.changeset/cuddly-ravens-carry.md @@ -0,0 +1,5 @@ +--- +'create-svelte': patch +--- + +Try this diff --git a/packages/create-svelte/scripts/update-template-repo.sh b/packages/create-svelte/scripts/update-template-repo.sh index b180efd3537b..f3997e29e43e 100755 --- a/packages/create-svelte/scripts/update-template-repo.sh +++ b/packages/create-svelte/scripts/update-template-repo.sh @@ -11,6 +11,11 @@ TMP=$(get_abs_filename "$DIR/../node_modules/.tmp") mkdir -p $TMP cd $TMP +if [ "$CI" ]; then + (umask 0077; echo "$UPDATE_TEMPLATE_SSH_KEY" > ~/ssh_key;) + export GIT_SSH_COMMAND='ssh -o StrictHostKeyChecking=accept-new -i ~/ssh_key' +fi + # 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 @@ -20,16 +25,10 @@ cd kit-template-default node $DIR/update-template-repo-contents.js $TMP/kit-template-default 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" - # commit the new files git add -A git commit -m "version $npm_package_version"