question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

clasp deploy does not publish a new version of a Google Docs add-on

See original GitHub issue

I might be misunderstanding the term “deployment” in the context of this CLI. I expect that when I deploy a new version of my add-on, it would publish a new version of the add-on.

Expected Behavior

That clasp deploy {version} would publish a new version of my Google docs add-on.

Actual Behavior

After running the above command and test out the published add-on, I don’t see the changes in the version used above.

Steps to Reproduce the Problem

  1. Publish an add-on with initial functionality
  2. Make some noticeable changes to the add-on (so that you know if it gets published)
  3. Use clasp push to get your changes into your Google script
  4. Use clasp version and clasp deploy {version} to deploy your changes
  5. Test out add-on to see the published changes

Specifications

  • Node version (node -v): v8.9.4
  • Version (npm list | grep clasp): 1.1.1
  • OS (Mac/Linux/Windows): Windows

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Comments:6 (4 by maintainers)

github_iconTop GitHub Comments

2reactions
grantcommented, Apr 10, 2018

I don’t plan to integrate the Chrome Webstore API in clasp anytime soon. That would be out of scope of this tool at the moment. There may be other CLIs that are dedicated for this case.

Thanks for the issue though. Feel free to still comment here if you think differently.

0reactions
grantcommented, Apr 6, 2018

@ryanolsonx The process of publishing an add-on is described here:

https://developers.google.com/apps-script/add-ons/publish

Interacting with the Chrome Web Store sounds like a good idea for a different CLI as it seems like a big set of commands with various options. It would be great if we could describe how to tie these two processes together.

Looks like there’s already progress with an API/CLI:

API: https://developer.chrome.com/webstore/using_webstore_api CLI: https://github.com/DrewML/chrome-webstore-upload-cli npm: https://www.npmjs.com/package/chrome-store-api

Please comment if you try that CLI out and find success.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Update and manage your published add-on | Apps Script
When you're ready to publish, create a new version for your add-on deployment. From the Apps Script project, take the following steps:.
Read more >
How to perform Google Add-on automated deployment ...
with CircleCi, we create a pipeline that executes unit-tests, makes clasp push and versions the add-on with the commit hash as a description....
Read more >
Google Docs Add-on – Publish new version
This morning, I added some extra code, deployed a new version (no changes ... 'Install' button) and there is no add-on in my...
Read more >
clasp - The Apps Script CLI - Google Codelabs
Once the code is local, you can use your favorite development tools like git to work on Apps Script projects. Manage Deployment Versions....
Read more >
Google Apps Script Tips to build Add-ons | Railsware Blog
Note: You need to create a copy of the add-on in order for the Google store to treat it as a separate app....
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found