Skip to content

Commit

Permalink
Script and dependencies for versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
plumdog committed Feb 26, 2020
1 parent dbe82f2 commit d8e03c5
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 1 deletion.
1 change: 1 addition & 0 deletions .npmrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
tag-version-prefix=""
28 changes: 28 additions & 0 deletions changelog_template.hbs
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
### Changelog

{{#each releases}}
{{#if href}}
###{{#unless major}}#{{/unless}} [{{title}}]({{href}})
{{else}}
#### {{title}}
{{/if}}

{{#if tag}}
> {{niceDate}}
{{/if}}

{{#if summary}}
{{summary}}
{{/if}}

{{#each merges}}
- {{message}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}
{{/each}}
{{#each fixes}}
- {{commit.subject}}{{#each fixes}}{{#if href}} [`#{{id}}`]({{href}}){{/if}}{{/each}}
{{/each}}
{{#each commits}}
- {{#if breaking}}**Breaking change:** {{/if}}{{subject}}{{#if href}} [`{{shorthash}}`]({{href}}){{/if}}
{{/each}}

{{/each}}
7 changes: 6 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
{
"name": "sops-secretsmanager-cdk",
"version": "0.0.0",
"scripts": {
"postinstall": "npm run tsc && npm run get-sops",
"get-sops": "wget https://github.com/mozilla/sops/releases/download/v3.5.0/sops-v3.5.0.linux -O ./provider/sops && chmod a+x ./provider/sops",
"tsc": "tsc"
"tsc": "tsc",
"version": "auto-changelog --template ./changelog_template.hbs -p && git add CHANGELOG.md"
},
"dependencies": {
"@types/node": ">=10"
Expand All @@ -18,5 +20,8 @@
"@aws-cdk/core": "^1.21.1",
"@aws-cdk/custom-resources": "^1.21.1",
"@aws-cdk/aws-cloudformation": "^1.21.1"
},
"devDependencies": {
"auto-changelog": "^1.16.2"
}
}

0 comments on commit d8e03c5

Please sign in to comment.