Skip to content
This repository has been archived by the owner on Jun 17, 2020. It is now read-only.

Commit

Permalink
Create a corresponding GitHub release whenever a new npm package is p…
Browse files Browse the repository at this point in the history
…ublished
  • Loading branch information
yuku committed Feb 22, 2016
1 parent c649762 commit b69c3d9
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,4 @@ node_modules
npm-debug.log
powered-test
textcomplete
textcomplete-*
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ powered-test
src
test
textcomplete
textcomplete-*
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@ This change log adheres to [keepachangelog.com](http://keepachangelog.com).
### Added
- This CHANGELOG file.
- Update `gh-pages` automatically when `master` branch is changed.
- Create a corresponding GitHub release whenever a new npm package is published.

### Fixed
- Enable to require as a npm package.
Expand Down
2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
"description": "Autocomplete for textarea elements",
"main": "lib/textcomplete.js",
"scripts": {
"postpublish": "npm pack textcomplete && gh-release -a textcomplete-$(cat package.json|jq -r .version).tgz",
"prepublish": "test \"$CI\" != \"true\" && npm test && gulp clean && gulp compile || echo skip prepublish",
"start": "gulp server watch",
"test": "gulp test"
Expand All @@ -25,6 +26,7 @@
"babelify": "^7.2.0",
"browserify": "^13.0.0",
"del": "^2.2.0",
"gh-release": "^2.0.2",
"gulp": "^3.9.0",
"gulp-babel": "^6.1.2",
"gulp-connect": "^2.3.1",
Expand Down

0 comments on commit b69c3d9

Please sign in to comment.