project-config/playbooks/javascript/release.yaml
Ian Wienand 76037c434e linter: add name to blocks
A later version of ansible-lint enforces names on blocks.  This is
generally a good rule; fix a few missing blocks here.

Change-Id: Ia87a0c21ec0ed1662e37cbc9e17a0df344b54e57
2022-07-28 12:03:23 +10:00

19 lines
542 B
YAML

- hosts: all
roles:
- fetch-javascript-output
- version-from-git
- fetch-javascript-tarball
- hosts: all
tasks:
# project_ver is set by set_fact in version-from-git, but that runs on
# the remote host, which puts the fact into the hostvars of that host.
# Now that we're running on localhost, we need to reach in to the remote
# hosts vars to get the value.
- name: Upload to NPM
block:
- name: Upload to npm
include_role:
name: upload-npm
delegate_to: localhost