Deploy Firefox extensions to AMO.
You should probably use jpm sign or web-ext sign instead.
npm install --save-dev firefox-extension-deploy
var fs = require('fs');
var deploy = require('firefox-extension-deploy');
deploy({
// obtained by following the instructions here:
// https://addons-server.readthedocs.io/en/latest/topics/api/auth.html
// or from this page:
// https://addons.mozilla.org/en-US/developers/addon/api/key/
issuer: 'myIssuer',
secret: 'mySecret',
// the ID of your extension
id: 'exampleId@jetpack',
// the version to publish
version: '1.0.0',
// a ReadStream containing a .zip (WebExtensions) or .xpi (Add-on SDK)
src: fs.createReadStream('path/to/zipped/extension.zip'),
}).then(function() {
// success!
}, function(err) {
// failure :(
});