Skip to content

Commit

Permalink
Error checking for publish process
Browse files Browse the repository at this point in the history
  • Loading branch information
Adam Comella committed Sep 4, 2015
1 parent e39bfad commit 0df6d6d
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Gruntfile.js
Original file line number Diff line number Diff line change
Expand Up @@ -177,6 +177,10 @@ module.exports = function(grunt) {
// task which puts all of the publication data into the 'dist' folder but
// doesn't actually send the data to the package managers.
grunt.registerTask('publish', function (mode) {
if (!process.env.GITHUB_ACCESS_TOKEN) {
grunt.fail.fatal('The GITHUB_ACCESS_TOKEN environment variable must be set in order to create GitHub releases');
}

if (!mode) {
grunt.log.writeln('');
grunt.log.writeln('Will publish version ' + pkg.version + ' of angular-winjs to npm, NuGet, etc. Double check that:');
Expand Down

0 comments on commit 0df6d6d

Please sign in to comment.