zuul-jobs/roles/npm/tasks/main.yaml
Sorin Sbarnea ad3167bd56 Fixes all tasks should be named rule
This prepared for ansible-lint v5 which no longer has exceptions
for task naming, requiring all to be named.

Change-Id: I5e761d1e3836fa270d7afdcf01780320001f820d
Part-Of: #773245
2021-03-08 13:30:32 +00:00

12 lines
264 B
YAML

- name: Require npm_command variable
fail:
msg: npm_command is required for this role
when: npm_command is not defined
- name: Run npm
include_role:
name: js-package-manager
vars:
js_build_command: '{{ npm_command }}'
js_build_tool: 'npm'