mirror of
https://github.com/ansible/awx.git
synced 2026-05-14 21:07:39 -02:30
Add npm cache path to fix UI building (push images job) (#16097)
* Add npm cache path to fix UI building * skip version switch
This commit is contained in:
@@ -87,7 +87,14 @@ ui/src/webpack: $(UI_DIR)/src/node_modules/webpack
|
||||
## True target for ui/src/webpack.
|
||||
$(UI_DIR)/src/node_modules/webpack:
|
||||
@echo "=== Installing webpack ==="
|
||||
@cd $(UI_DIR)/src && n 18 && npm install webpack
|
||||
@cd $(UI_DIR)/src && \
|
||||
maj=$$(node -p "process.versions.node.split('.')[0]"); \
|
||||
if [ "$$maj" != "18" ]; then \
|
||||
echo "Error: Need Node 18.x; found $$(node -v)" >&2; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
npm install webpack
|
||||
|
||||
|
||||
.PHONY: clean/ui
|
||||
## Clean ui
|
||||
|
||||
Reference in New Issue
Block a user