Update fitlien-services-pipeline.yaml
This commit is contained in:
parent
7690cab2f5
commit
557968cab1
@ -66,11 +66,18 @@ steps:
|
||||
script: curl -sL firebase.tools | upgrade=true bash
|
||||
workingDirectory: $(Agent.ToolsDirectory)
|
||||
|
||||
- task: CmdLine@2
|
||||
- task: Bash@3
|
||||
displayName: "Deploy functions to firebase"
|
||||
inputs:
|
||||
script: firebase deploy"
|
||||
workingDirectory: "$(System.DefaultWorkingDirectory)"
|
||||
targetType: "inline"
|
||||
workingDirectory: "$(Build.SourcesDirectory)"
|
||||
script: |
|
||||
npm install -g typescript
|
||||
cd functions
|
||||
npm install
|
||||
npm run build
|
||||
cd $(Build.SourcesDirectory)
|
||||
firebase deploy --only functions --token '$(FIREBASE_TOKEN)' --non-interactive
|
||||
|
||||
- task: DeleteFiles@1
|
||||
displayName: "Remove node_modules, *.log files, src directory from functions directory"
|
||||
|
||||
Loading…
Reference in New Issue
Block a user