Skip to content

Commit

Permalink
chore: update shipjs config (#239)
Browse files Browse the repository at this point in the history
* update shipjs config
* use github bot name email for prepared releases
* remove `@`
  • Loading branch information
jeetiss authored Mar 11, 2020
1 parent 99ae412 commit f291888
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 7 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/shipjs-manual-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ jobs:
npm install
fi
- run: |
git config --global user.email "[email protected]"
git config --global user.name "jeetiss"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: npm run release:prepare -- --yes --no-browse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/shipjs-schedule-prepare.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ jobs:
npm install
fi
- run: |
git config --global user.email "[email protected]"
git config --global user.name "jeetiss"
git config --global user.email "github-actions[bot]@users.noreply.github.com"
git config --global user.name "github-actions[bot]"
- run: npm run release:prepare -- --yes --no-browse
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand Down
5 changes: 2 additions & 3 deletions ship.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,18 +2,17 @@ const fs = require('fs');
const path = require('path');

module.exports = {
testCommandBeforeRelease: () => null,
publishCommand: ({ defaultCommand }) => `${defaultCommand} --access public`,
mergeStrategy: { toSameBranch: ['master'] },
versionUpdated: ({ version, dir }) => {
const versionPath = path.resolve(dir, 'src/version.ts');
fs.writeFileSync(versionPath, `export default '${version}'\n`);
},
pullRequestReviewers: ['jeetiss'],
slack: {
// disable slack notification for `prepared` and `releaseStart` lifecycle.
// disable slack notification for `prepared` lifecycle.
// Ship.js will send slack message only for `releaseSuccess`.
prepared: null,
releaseStart: null
},
// skip preparation if master contain only `chore` commits
shouldPrepare: ({ releaseType, commitNumbersPerType }) => {
Expand Down

0 comments on commit f291888

Please sign in to comment.