Check if chrome-webstore-upload-cli is already installed

Change-Id: I380f9b452128cdfec461e3b5571ea9a7a4744a74
diff --git a/roles/ensure-cws-upload/tasks/main.yaml b/roles/ensure-cws-upload/tasks/main.yaml
index bf99440..5318a97 100644
--- a/roles/ensure-cws-upload/tasks/main.yaml
+++ b/roles/ensure-cws-upload/tasks/main.yaml
@@ -3,5 +3,13 @@
     name: ensure-nodejs
   vars:
     node_version: 16
+
+- name: Check installed chrome-webstore-upload-cli version
+  command: "chrome-webstore-upload --version"
+  register: installed_version
+  failed_when: false
+
 - name: Install chrome-webstore-upload-cli
   command: "npm install --global chrome-webstore-upload-cli@{{ version }}"
+  when:
+    - installed_version.rc != 0 or (installed_version.stdout|trim) != version