Skip to content

Commit

Permalink
feat(CI): auto-generate AUTHORS.md file
Browse files Browse the repository at this point in the history
* feat(CI): Auto-generate AUTHORS.md file

* feat(CI): auto-cut a release when CFN updates

Updates the auto-generated pull requests to match the semantic-release
format so that a new minor release will be automatically cut every time
AWS CloudFormation publishes a new schema update

* fix(CI): set GITHUB_TOKEN correctly for AUTHORS.md

* feat(CI): Auto-generate AUTHORS.md file

* updated Travis config to remove GitHub token envvar for authors
  • Loading branch information
PaulMaddox committed Mar 10, 2019
1 parent 193df13 commit b37af7b
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
14 changes: 4 additions & 10 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -7,26 +7,20 @@
"@semantic-release/changelog",
{
"changelogFile": "CHANGELOG.md",
"changelogTitle": "# Semantic Versioning Changelog"
"changelogTitle": "# GoFormation Versioning Changelog"
}
],
[
"@semantic-release/git",
{
"assets": [
"CHANGELOG.md"
"CHANGELOG.md",
"AUTHORS.md"
]
}
],
[
"@semantic-release/github",
{
"assets": [
{
"path": "**"
}
]
}
"@semantic-release/github"
]
]
}
Expand Down
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ jobs:
node_js: lts/*
before_install: skip
script:
# # Update AUTHORS.md
# - export MAINTAINER_TOKEN=${GH_TOKEN}
# - go get github.com/myii/maintainer
# - maintainer contributor
# Update AUTHORS.md
- go get github.com/myii/maintainer
- maintainer contributor

# Install all dependencies required for `semantic-release`
- npm install @semantic-release/changelog@3 -D
Expand Down
2 changes: 1 addition & 1 deletion generate/create-pull-request.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ DST_BRANCH="master"
# Git details (for the commit)
COMMIT_NAME="AWS GoFormation"
COMMIT_EMAIL="goformation@amazon.com"
COMMIT_MSG="AWS CloudFormation Update ($(date +%F))"
COMMIT_MSG="feat(schema): AWS CloudFormation Update ($(date +%F))"

echo "Build Type: ${TRAVIS_EVENT_TYPE}"

Expand Down

0 comments on commit b37af7b

Please sign in to comment.