forked from Azure/azure-functions-durable-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines-release.yml
43 lines (40 loc) · 1.32 KB
/
azure-pipelines-release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
parameters:
- name: NpmPublishTag
displayName: "Tag"
type: string
default: "latest"
- name: NpmPublishDryRun
displayName: "Dry Run"
type: boolean
default: true
trigger: none
pr: none
resources:
pipelines:
- pipeline: DurableJSCI
project: "Azure Functions"
source: azure-functions-durable-js
branch: dev
jobs:
- job: Release
pool:
name: "1ES-Hosted-AzFunc"
demands:
- ImageOverride -equals MMSUbuntu20.04TLS
steps:
- task: NodeTool@0
displayName: "Install Node.js"
inputs:
versionSpec: 14.x
- download: DurableJSCI
- script: mv *.tgz package.tgz
displayName: "Rename tgz file" # because the publish command below requires an exact path
workingDirectory: "$(Pipeline.Workspace)/DurableJSCI/drop"
- task: Npm@1
displayName: "npm publish"
inputs:
command: custom
workingDir: "$(Pipeline.Workspace)/DurableJSCI/drop"
verbose: true
customCommand: "publish package.tgz --tag ${{ parameters.NpmPublishTag }} --dry-run ${{ lower(parameters.NpmPublishDryRun) }}"
customEndpoint: "NPM Durable Functions JS Publish"