From cf1913874dc3ed8c5c94484afd83fc360fe5c98d Mon Sep 17 00:00:00 2001 From: BAK BYEONG JUN Date: Fri, 25 Apr 2025 23:39:02 +0000 Subject: [PATCH] init --- tasks/rust-nx-merge/task.yaml | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/tasks/rust-nx-merge/task.yaml b/tasks/rust-nx-merge/task.yaml index e556e0a..4a1f430 100644 --- a/tasks/rust-nx-merge/task.yaml +++ b/tasks/rust-nx-merge/task.yaml @@ -40,6 +40,18 @@ spec: - name: base steps: + - name: install-deps + image: node:18-alpine + workingDir: /workspace/base/$(params.context)/source/$(params.workspaceName) + env: + - name: HOME + value: /workspace/base/$(params.context)/home + script: | + # Install Nx if missing + command -v nx >/dev/null || npm install -g nx@latest + + pnpm install + - name: import-projects image: node:18-alpine workingDir: /workspace/base/$(params.context)/source/$(params.workspaceName) @@ -52,9 +64,6 @@ spec: ls -al - # Install Nx if missing - command -v nx >/dev/null || npm install -g nx@latest - TARGETS="$(params.targetProjects)" SOURCES="$(params.sourceProjects)"