ce6dbeec by David LaPalomento

Add github-releaser config

Setup grunt-github-releaser for subsequent releases. Remove a leading newline that caused chg to mis-parse the changelog for 0.17.2.
1 parent 675d9423
...@@ -7,7 +7,6 @@ _(none)_ ...@@ -7,7 +7,6 @@ _(none)_
7 -------------------- 7 --------------------
8 8
9 ## 0.17.2 (2015-06-15) 9 ## 0.17.2 (2015-06-15)
10
11 * @dmlap fix seeking in live streams ([view](https://github.com/videojs/videojs-contrib-hls/pull/308)) 10 * @dmlap fix seeking in live streams ([view](https://github.com/videojs/videojs-contrib-hls/pull/308))
12 11
13 ## 0.17.1 (2015-06-08) 12 ## 0.17.1 (2015-06-08)
......
...@@ -3,11 +3,12 @@ ...@@ -3,11 +3,12 @@
3 var basename = require('path').basename; 3 var basename = require('path').basename;
4 4
5 module.exports = function(grunt) { 5 module.exports = function(grunt) {
6 var pkg = grunt.file.readJSON('package.json');
6 7
7 // Project configuration. 8 // Project configuration.
8 grunt.initConfig({ 9 grunt.initConfig({
9 // Metadata. 10 // Metadata.
10 pkg: grunt.file.readJSON('package.json'), 11 pkg: pkg,
11 banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' + 12 banner: '/*! <%= pkg.name %> - v<%= pkg.version %> - ' +
12 '<%= grunt.template.today("yyyy-mm-dd") %>\n' + 13 '<%= grunt.template.today("yyyy-mm-dd") %>\n' +
13 '* Copyright (c) <%= grunt.template.today("yyyy") %> Brightcove;' + 14 '* Copyright (c) <%= grunt.template.today("yyyy") %> Brightcove;' +
...@@ -118,6 +119,23 @@ module.exports = function(grunt) { ...@@ -118,6 +119,23 @@ module.exports = function(grunt) {
118 src: ['package.json'] 119 src: ['package.json']
119 } 120 }
120 }, 121 },
122 'github-release': {
123 options: {
124 repository: 'videojs/videojs-contrib-hls',
125 auth: {
126 user: process.env.VJS_GITHUB_USER,
127 password: process.env.VJS_GITHUB_TOKEN
128 },
129 release: {
130 'tag_name': 'v' + pkg.version,
131 name: pkg.version,
132 body: require('chg').find(pkg.version).changesRaw
133 }
134 },
135 files: {
136 'dist': ['videojs.hls.min.js']
137 }
138 },
121 karma: { 139 karma: {
122 options: { 140 options: {
123 frameworks: ['qunit'] 141 frameworks: ['qunit']
......