Skip to content

Commit

Permalink
feat(authors): update automatically alongside semantic-release
Browse files Browse the repository at this point in the history
* https://github.com/gaocegege/maintainer
  - The existing `AUTHORS.md` was created manually using this CLI app.
  - This commit automates this process to run during the CI build,
    as part of the overall `semantic-release` process.
* https://github.com/myii/maintainer
  - Using an enhanced, forked version of this app.
  - The authors are now shown in a table rather than a bulleted list.
  • Loading branch information
myii committed Feb 23, 2019
1 parent fc664e7 commit 8000098
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,19 @@ jobs:
node_js: lts/*
before_install: skip
script:
# Update `AUTHORS.md`
- export MAINTAINER_TOKEN=${GH_TOKEN}
- go get github.com/myii/maintainer
- maintainer contributor

# Install all dependencies required for `semantic-release`
- npm install @semantic-release/changelog@3 -D
- npm install @semantic-release/exec@3 -D
- npm install @semantic-release/git@7 -D
deploy:
provider: script
skip_cleanup: true
script:
# Run `semantic-release`
- npx semantic-release@15

2 changes: 1 addition & 1 deletion release.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ module.exports = {
prepareCmd: 'sh ./update_FORMULA.sh ${nextRelease.version}',
}],
['@semantic-release/git', {
assets: ['CHANGELOG.md', 'FORMULA'],
assets: ['*.md', 'FORMULA'],
}],
'@semantic-release/github',
],
Expand Down

0 comments on commit 8000098

Please sign in to comment.