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
|
script: curl -sL firebase.tools | upgrade=true bash
|
||||||
workingDirectory: $(Agent.ToolsDirectory)
|
workingDirectory: $(Agent.ToolsDirectory)
|
||||||
|
|
||||||
- task: CmdLine@2
|
- task: Bash@3
|
||||||
displayName: "Deploy functions to firebase"
|
displayName: "Deploy functions to firebase"
|
||||||
inputs:
|
inputs:
|
||||||
script: firebase deploy"
|
targetType: "inline"
|
||||||
workingDirectory: "$(System.DefaultWorkingDirectory)"
|
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
|
- task: DeleteFiles@1
|
||||||
displayName: "Remove node_modules, *.log files, src directory from functions directory"
|
displayName: "Remove node_modules, *.log files, src directory from functions directory"
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user