Skip to content

Commit

Permalink
aosfdnasf
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jan 28, 2022
1 parent e221d30 commit 178e297
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 6 deletions.
5 changes: 5 additions & 0 deletions .changeset/cuddly-ravens-carry.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'create-svelte': patch
---

Try this
11 changes: 5 additions & 6 deletions packages/create-svelte/scripts/update-template-repo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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"
Expand Down

0 comments on commit 178e297

Please sign in to comment.