forked from flobiwankenobi/cordova-plugin-barcode-detector
-
Notifications
You must be signed in to change notification settings - Fork 22
/
azure-pipelines.yaml
36 lines (32 loc) · 1019 Bytes
/
azure-pipelines.yaml
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
name: $(Date:yyyyMMdd)$(Rev:.r)
# no CI trigger, must be started manual
trigger: none
# no pull request triggers
pr: none
pool:
vmImage: 'ubuntu-latest'
stages:
- stage: Publish
displayName: 'Publish'
jobs:
- job: PublishToAzureArtifacts
displayName: 'Only Master: Publish to Azure Artifacts'
condition: and(succeeded(), eq(variables['Build.SourceBranch'], 'refs/heads/master'))
steps:
- task: NodeTool@0
displayName: Set Node version to 14
inputs:
versionSpec: '14.x'
- script: |
npm install -g npm@7
displayName: 'Installing npm modules'
- task: npmAuthenticate@0
displayName: Setup authentication for AzureDevOps npm feed
inputs:
workingFile: .npmrc
- script: |
npm ci
displayName: 'Installing npm modules'
- script: |
npm publish
displayName: 'Publish npm package'