clasp deploy does not publish a new version of a Google Docs add-on
See original GitHub issueI 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
- Publish an add-on with initial functionality
- Make some noticeable changes to the add-on (so that you know if it gets published)
- Use
clasp push
to get your changes into your Google script - Use
clasp version
andclasp deploy {version}
to deploy your changes - 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:
- Created 6 years ago
- Comments:6 (4 by maintainers)
Top 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 >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
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.
@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.