diff --git a/.circleci/config.yml b/.circleci/config.yml index 97dd88faf..bc59b114f 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -57,8 +57,8 @@ jobs: - run: name: Prepare release command: | - git config --global user.email "karis612@gmail.com" - git config --global user.name "Eunjae Lee" + git config --global user.email "instantsearch-bot@algolia.com" + git config --global user.name "Algolia" yarn run release --yes --no-browse shipjs_trigger: <<: *defaults @@ -70,7 +70,10 @@ jobs: - save_cache: *save_yarn_cache - run: name: Triggering Ship.js to Release - command: yarn shipjs trigger + command: | + git config --global user.email "instantsearch-bot@algolia.com" + git config --global user.name "Algolia" + yarn shipjs trigger gh_pages: <<: *defaults steps: @@ -82,8 +85,8 @@ jobs: - run: name: Release website to gh-pages command: | - git config --global user.email "karis612@gmail.com" - git config --global user.name "Eunjae Lee" + git config --global user.email "instantsearch-bot@algolia.com" + git config --global user.name "Algolia" yarn workspace website deploy:gh workflows: version: 2 diff --git a/packages/shipjs/src/step/setup/CI/addCircleCIConfig.js b/packages/shipjs/src/step/setup/CI/addCircleCIConfig.js index 2ee55b181..73cb7864a 100644 --- a/packages/shipjs/src/step/setup/CI/addCircleCIConfig.js +++ b/packages/shipjs/src/step/setup/CI/addCircleCIConfig.js @@ -132,7 +132,10 @@ jobs: - save_cache: *save_yarn_cache - run: name: Triggering Ship.js to Release - command: yarn shipjs trigger + command: | + git config --global user.email "<%= gitUserEmail %>" + git config --global user.name "<%= gitUserName %>" + yarn shipjs trigger workflows: version: 2 release_if_needed: diff --git a/website/guide/getting-started.md b/website/guide/getting-started.md index e7556f3b0..5e8cac905 100644 --- a/website/guide/getting-started.md +++ b/website/guide/getting-started.md @@ -93,7 +93,10 @@ jobs: command: yarn install - run: name: Triggering Ship.js to Release - command: yarn shipjs trigger + command: | + git config --global user.email "you@example.com" + git config --global user.name "Your Name" + yarn shipjs trigger workflows: version: 2 release_if_needed: diff --git a/website/guide/useful-config.md b/website/guide/useful-config.md index a5a27b6d6..2173ebf2a 100644 --- a/website/guide/useful-config.md +++ b/website/guide/useful-config.md @@ -126,7 +126,7 @@ For example, you normally work on `develop` and want to have the latest release ```js module.exports = { afterPublish: ({ exec }) => { - exec(`git config --global user.email "your@email.com"`); + exec(`git config --global user.email "you@example.com"`); exec(`git config --global user.name "Your Name"`); exec('git checkout master');