project-config/playbooks/javascript/release.yaml
Monty Taylor e63337cfe1
Fetch javascript output on publish jobs too
We were only fetching the tarballs on the release jobs, not on the
publish jobs. That makes the publish job not so much of a publish job.

Change-Id: I8e6b12e61bcc42d2896c4fb574aaf6f1718e1bdb
2018-01-23 13:47:14 -06:00

15 lines
498 B
YAML

- hosts: ubuntu-xenial
roles:
- fetch-javascript-output
- version-from-git
- fetch-javascript-tarball
- hosts: localhost
roles:
# 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.
- role: upload-npm
project_ver: "{{ hostvars['ubuntu-xenial']['project_ver'] }}"