Skip to content

Commit

Permalink
Added auto deployment and release note generator
Browse files Browse the repository at this point in the history
  • Loading branch information
Adrian Darian committed Apr 15, 2020
1 parent bba3810 commit c0dfc01
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ actions:
react:
- src/*

# Add 'storybook' label to any changes done to the React application
ngrx:
# Add 'storybook' label to any changes done to the StoryBook
storybook:
- .storybook
- src/**/*.stories.*

Expand Down
File renamed without changes.
39 changes: 39 additions & 0 deletions .grenrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
module.exports = {
dataSource: "prs",
prefix: "Release ",
ignoreLabels: [
"actions",
"react",
"storybook",
"dependencies",
"documentation",
"duplicate",
"help wanted",
"invalid",
"question",
"test",
"wontfix",
"workflows"
],
template: {
commit: ({ message, url, author, name }) =>
`- [${message}](${url}) - ${author ? `@${author}` : name}`,
issue: "- {{labels}} {{name}} [{{text}}]({{url}})",
label: "[**{{label}}**]",
noLabel: "closed",
group: "\n#### {{heading}}\n",
changelogTitle: "# Changelog\n\n",
release: function(placeholders, body) {
var fDate = new Date(placeholders.date);
return `## ${placeholders.release} ${fDate}\n${placeholders.body}`;
},
releaseSeparator: "\n---\n\n"
},
onlyMilestones: false,
groupBy: {
"Features:": ["enhancement"],
"Bug Fixes:": ["bug"]
},
changelogFilename: "CHANGELOG.md"
};

3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,7 @@
"storybook": "start-storybook -p 9001 -c .storybook",
"tailwind:css": "tailwind build src/tailwind.css -c tailwind.config.js -o src/index.css",
"test": "react-scripts test",
"predeploy": "yarn build",
"deploy": "gh-pages -d build"
"gren": "gren release --override --tags=all --config=.grenrc.js"
},
"browserslist": {
"production": [
Expand Down

0 comments on commit c0dfc01

Please sign in to comment.