Skip to content

Commit

Permalink
feat(add dangerfile.js): add dangerfile.js
Browse files Browse the repository at this point in the history
add dangerfile.js
  • Loading branch information
leaveeel committed Dec 21, 2020
1 parent 69a5393 commit 237afe2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
4 changes: 3 additions & 1 deletion .travis.yml
Expand Up @@ -3,8 +3,10 @@ language: node_js
node_js:
- 11
- 10

before_script:
- npm run danger
jobs:

include:
# Define the release stage that runs semantic-release
- stage: release
Expand Down
4 changes: 4 additions & 0 deletions dangerfile.js
@@ -0,0 +1,4 @@
import {message, danger} from "danger"

const modifiedMD = danger.git.modified_files.join("- ")
message("Changed Files in this PR: \n - " + modifiedMD)
3 changes: 2 additions & 1 deletion package.json
Expand Up @@ -20,7 +20,8 @@
"release-major": "standard-version --release-as major",
"release-minor": "standard-version --release-as minor",
"semantic-release": "semantic-release",
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run"
"test": "cross-env NODE_ENV=test karma start karma.conf.js --single-run",
"danger": "danger ci"
},
"dependencies": {
"@storybook/addon-a11y": "^5.3.19",
Expand Down

0 comments on commit 237afe2

Please sign in to comment.