gulp-octorelease
v1.0.2
Published
Publish releases & upload assets with gulp
Downloads
3
Readme
gulp-octorelease
Publish releases & upload assets with gulp
Installation
npm i --save-dev gulp-octorelease
Usage
Import it:
import release from 'gulp-octorelease';
Or if you are using CommonJS modules, require it like this:
const release = require('gulp-octorelease').default;
EX:
const manifest = require('package.json');
gulp.task('github', function(){
gulp.src(pathToZipFile)
.pipe(release({
token: process.env.GITHUB_TOKEN,
tag: 'v' + manifest.version,
name: manifest.name + ' v' + manifest.version,
body: 'New ' + manifest.name + ' release v' + manifest.version + '!',
assetName: 'yourAssetName.zip',
manifest: manifest
}));
});
gulp.task('release', ['your-zip-task', 'github']);
TODO
- Better error handling
- Consider using async/await
Cheers 🤖