How to use chrome-webstore-upload - 1 common examples

To help you get started, we’ve selected a few chrome-webstore-upload examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github WorldBrain / Memex / gulpfile.babel.js View on Github external
gulp.task('publish-extension:chrome', ['package'], () => {
    const extensionID = process.env.WEBSTORE_EXTENSION_ID
    const webStore = ChromeStore({
        extensionId: extensionID,
        clientId: process.env.WEBSTORE_CLIENT_ID,
        clientSecret: process.env.WEBSTORE_CLIENT_SECRET,
        refreshToken: process.env.WEBSTORE_REFRESH_TOKEN,
    })
    const tokenP = webStore.fetchToken()
    const uploadP = tokenP.then(token =>
        webStore.uploadExisting(
            fs.createReadStream('dist/extension.zip'),
            token,
        ),
    )

    return Promise.all([tokenP, uploadP]).then(([token]) =>
        webStore.publish('default', token),
    )

chrome-webstore-upload

Upload Chrome Extensions to the Chrome Web Store

MIT
Latest version published 2 months ago

Package Health Score

81 / 100
Full package analysis

Popular chrome-webstore-upload functions