From f4c83b3e962ccef0fde9f7eef1029614c599c211 Mon Sep 17 00:00:00 2001 From: Sarah Vaupel Date: Fri, 17 Jan 2025 15:14:23 +0100 Subject: [PATCH] ci(azure-pipelines): add npm tasks --- azure-pipelines.yaml | 23 ++++++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 4902425c4..550fb32a8 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -85,10 +85,31 @@ jobs: dependsOn: BuildFrontendImage condition: succeeded() container: - image: devfra.azurecr.io/de.fraport.fradrive.build/frontend:$(Build.BuildNumber) + image: devfra.azurecr.io/de.fraport.build/npm:node-20 endpoint: devfra steps: - checkout: self + - task: Npm@1 + name: frontendInstall + displayName: Install node_modules + inputs: + command: 'install' + workingDir: '$(Build.Repository.LocalPath)' + verbose: true + - task: Npm@1 + name: frontendBuild + displayName: Build frontend resources + inputs: + command: 'custom' + customCommand: 'build' + workingDir: '$(Build.Repository.LocalPath)' + - task: Bash@3 + name: debugPrints + inputs: + targetType: inline + script: | + ls -a . + ls -a $(Build.Repository.LocalPath) - task: Bash@3 name: compileFrontend displayName: Compile frontend