12790e51 by David LaPalomento

Merge pull request #309 from videojs/release-fixes

Add github-releaser config
2 parents 48eb8b72 ce6dbeec
...@@ -10,7 +10,6 @@ CHANGELOG ...@@ -10,7 +10,6 @@ CHANGELOG
10 -------------------- 10 --------------------
11 11
12 ## 0.17.2 (2015-06-15) 12 ## 0.17.2 (2015-06-15)
13
14 * @dmlap fix seeking in live streams ([view](https://github.com/videojs/videojs-contrib-hls/pull/308)) 13 * @dmlap fix seeking in live streams ([view](https://github.com/videojs/videojs-contrib-hls/pull/308))
15 14
16 ## 0.17.1 (2015-06-08) 15 ## 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;' +
...@@ -124,6 +125,23 @@ module.exports = function(grunt) { ...@@ -124,6 +125,23 @@ module.exports = function(grunt) {
124 src: ['package.json'] 125 src: ['package.json']
125 } 126 }
126 }, 127 },
128 'github-release': {
129 options: {
130 repository: 'videojs/videojs-contrib-hls',
131 auth: {
132 user: process.env.VJS_GITHUB_USER,
133 password: process.env.VJS_GITHUB_TOKEN
134 },
135 release: {
136 'tag_name': 'v' + pkg.version,
137 name: pkg.version,
138 body: require('chg').find(pkg.version).changesRaw
139 }
140 },
141 files: {
142 'dist': ['videojs.hls.min.js']
143 }
144 },
127 karma: { 145 karma: {
128 options: { 146 options: {
129 frameworks: ['qunit'] 147 frameworks: ['qunit']
......