Adrià Vilanova Martínez | 592b5b8 | 2022-01-16 01:21:15 +0100 | [diff] [blame] | 1 | - name: Ensure NodeJS is installed |
| 2 | include_role: |
| 3 | name: ensure-nodejs |
| 4 | vars: |
Adrià Vilanova Martínez | 17832bf | 2024-02-10 01:07:09 +0100 | [diff] [blame^] | 5 | node_version: 20 |
Adrià Vilanova Martínez | 523f183 | 2022-01-17 00:25:35 +0100 | [diff] [blame] | 6 | |
| 7 | - name: Check installed chrome-webstore-upload-cli version |
| 8 | command: "chrome-webstore-upload --version" |
| 9 | register: installed_version |
| 10 | failed_when: false |
| 11 | |
Adrià Vilanova Martínez | 592b5b8 | 2022-01-16 01:21:15 +0100 | [diff] [blame] | 12 | - name: Install chrome-webstore-upload-cli |
| 13 | command: "npm install --global chrome-webstore-upload-cli@{{ version }}" |
Adrià Vilanova Martínez | 523f183 | 2022-01-17 00:25:35 +0100 | [diff] [blame] | 14 | when: |
| 15 | - installed_version.rc != 0 or (installed_version.stdout|trim) != version |