Skip to content

Commit

Permalink
Merge pull request #35 from Snugug/feature/automated-releases
Browse files Browse the repository at this point in the history
Add Automatic Semantic Releases
  • Loading branch information
scottnath authored Jun 17, 2016
2 parents fb5950e + d0289df commit d5d664d
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 25 deletions.
23 changes: 2 additions & 21 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -1,25 +1,6 @@
{{short description}}

**Changelog**

```markdown
**New**

* {{new thing}}
* {{other new thing}}

**Changed**

* {{change thing}}
* {{other change thing}}

**Removed**

* {{removed thing}}
* {{other removed thing}}
```

---
Resolves: #
Resolves #

`DCO 1.1 Signed-off-by: {{full name}} <{{email address}}>`
`DCO 1.1 Signed-off-by: {{full name}} <{{email address}}>`
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ lib-cov
# Coverage directory used by tools like istanbul
coverage
.nyc_output
.semantic-commits.json

# Grunt intermediate storage (http://gruntjs.com/creating-plugins#storing-task-files)
.grunt
Expand Down
20 changes: 19 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,28 @@
language: node_js
node_js:
- '5.7'

#########################
## Setup
#########################
sudo: false
cache:
directories:
- node_modules
after_success: npm run coverage

before_script:
- npm prune

after_success:
- npm run coverage
- npm run semantic-release

branches:
except:
- /^v\d+\.\d+\.\d+$/
#########################
## Notifications
#########################
notifications:
email: false
slack:
Expand Down
12 changes: 9 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "punchcard-content-types",
"version": "0.6.0",
"description": "",
"main": "index.js",
"keywords": [
Expand All @@ -16,15 +15,16 @@
"ava:watch": "ava --watch | tap-diff",
"nyc": "nyc --all npm run ava",
"start": "node ./",
"coverage": "nyc report --reporter=text-lcov | coveralls"
"coverage": "nyc report --reporter=text-lcov | coveralls",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"contributors": [
"Scott Nath <[email protected]>",
"Sam Richard <[email protected]>"
],
"repository": {
"type": "git",
"url": "git@github.com:punchcard-cms/punchcard-content-types.git"
"url": "https://github.com/punchcard-cms/content-types.git"
},
"license": "Apache-2.0",
"dependencies": {
Expand Down Expand Up @@ -53,7 +53,9 @@
"nyc": "^6.0.0",
"open-exchange-rates": "^0.3.0",
"punchcard-commit-msg": "^1.0.0",
"punchcard-semantic-release": "^2.0.0",
"raw-loader": "^0.5.1",
"semantic-release": "^4.3.5",
"tap-diff": "^0.1.1"
},
"engines": {
Expand All @@ -77,5 +79,9 @@
"ghooks": {
"commit-msg": "punchcard-commit-msg"
}
},
"release": {
"analyzeCommits": "punchcard-semantic-release/analyze",
"generateNotes": "punchcard-semantic-release/notes"
}
}

0 comments on commit d5d664d

Please sign in to comment.