From b37af7b979a6eec4193cfb813b6d4f6bbda29c8f Mon Sep 17 00:00:00 2001 From: Paul Maddox Date: Sun, 10 Mar 2019 16:52:50 +0400 Subject: [PATCH] feat(CI): auto-generate AUTHORS.md file * 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 --- .releaserc | 14 ++++---------- .travis.yml | 7 +++---- generate/create-pull-request.sh | 2 +- 3 files changed, 8 insertions(+), 15 deletions(-) diff --git a/.releaserc b/.releaserc index 331899eb8a..19596a14b7 100644 --- a/.releaserc +++ b/.releaserc @@ -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" ] ] } diff --git a/.travis.yml b/.travis.yml index 8f33cb4bfb..d8414ce1ce 100644 --- a/.travis.yml +++ b/.travis.yml @@ -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 diff --git a/generate/create-pull-request.sh b/generate/create-pull-request.sh index dda88d3d73..e1f3a32749 100755 --- a/generate/create-pull-request.sh +++ b/generate/create-pull-request.sh @@ -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}"