Update fitlien-services-pipeline.yaml
This commit is contained in:
parent
f5e98e378b
commit
964831c765
@ -30,6 +30,15 @@ steps:
|
|||||||
command: "install"
|
command: "install"
|
||||||
workingDir: "$(System.DefaultWorkingDirectory)/functions"
|
workingDir: "$(System.DefaultWorkingDirectory)/functions"
|
||||||
|
|
||||||
|
- task: CmdLine@2
|
||||||
|
displayName: "npm install"
|
||||||
|
inputs:
|
||||||
|
script: |
|
||||||
|
"rm -rf node_modules"
|
||||||
|
"rm package-lock.json"
|
||||||
|
"npm install --frozen-lockfile"
|
||||||
|
workingDirectory: "$(System.DefaultWorkingDirectory)/functions"
|
||||||
|
|
||||||
- task: PowerShell@2
|
- task: PowerShell@2
|
||||||
displayName: "Set version in package.json"
|
displayName: "Set version in package.json"
|
||||||
inputs:
|
inputs:
|
||||||
@ -67,7 +76,7 @@ steps:
|
|||||||
- task: CmdLine@2
|
- task: CmdLine@2
|
||||||
displayName: "Deploy functions to firebase"
|
displayName: "Deploy functions to firebase"
|
||||||
inputs:
|
inputs:
|
||||||
script: firebase deploy --only functions --token $(FIREBASE_TOKEN)
|
script: firebase deploy --only functions --token "$(FIREBASE_TOKEN)"
|
||||||
workingDirectory: "$(System.DefaultWorkingDirectory)"
|
workingDirectory: "$(System.DefaultWorkingDirectory)"
|
||||||
|
|
||||||
- task: DeleteFiles@1
|
- task: DeleteFiles@1
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user