@@ -221,13 +221,27 @@ module.exports = function(grunt) {
221221 } ,
222222 release : {
223223 options : {
224+ folder : 'p5-release' , //default project root
224225 github : {
225226 repo : 'processing/p5.js' , //put your user/repo here
226- usernameVar : process . env . GITHUB_USERNAME , //ENVIRONMENT VARIABLE that contains Github username
227- passwordVar : process . env . GITHUB_PASSWORD //ENVIRONMENT VARIABLE that contains Github password
227+ accessTokenVar : process . env . GITHUB_TOKEN
228228 }
229229 }
230230 } ,
231+ 'release-it' : {
232+ options : {
233+ pkgFiles : [ 'package.json' ] ,
234+ commitMessage : 'release %s' ,
235+ tagName : '%s' ,
236+ tagAnnotation : 'release %s' ,
237+ buildCommand : false ,
238+ distRepo : 'https://github.com/lmccart/p5.js-release' ,
239+ distStageDir : '.stage' ,
240+ distFiles : [ 'p5.*' , 'addons/p5.*.js' ] ,
241+ distBase : 'lib' ,
242+ publish : false
243+ }
244+ } ,
231245 // This is a static server which is used when testing connectivity for the
232246 // p5 library. This avoids needing an internet connection to run the tests.
233247 // It serves all the files in the test directory at http://localhost:9001/
@@ -264,6 +278,7 @@ module.exports = function(grunt) {
264278 grunt . loadNpmTasks ( 'grunt-contrib-uglify' ) ;
265279 grunt . loadNpmTasks ( 'grunt-contrib-connect' ) ;
266280 grunt . loadNpmTasks ( 'grunt-newer' ) ;
281+ grunt . loadNpmTasks ( 'grunt-release-it' ) ;
267282
268283 // Create the multitasks.
269284 // TODO: "requirejs" is in here to run the "yuidoc_themes" subtask. Is this needed?
0 commit comments