-
Notifications
You must be signed in to change notification settings - Fork 0
/
azure-pipelines.yml
40 lines (33 loc) · 934 Bytes
/
azure-pipelines.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
trigger:
branches:
include:
- main
name: $(Date:yyyyMMdd)$(Rev:rrr)
pool:
vmImage: "ubuntu-latest"
steps:
- task: NodeTool@0
inputs:
versionSpec: "20.x"
displayName: "Install Node.js"
- script: |
npm install
npm run generate
npm run build
npm version 1.0.$(Build.BuildNumber) --no-git-tag-version --allow-same-version
displayName: "Install dependencies and build"
- task: CopyFiles@2
inputs:
SourceFolder: "$(Build.SourcesDirectory)"
Contents: "README.md"
TargetFolder: "$(Build.ArtifactStagingDirectory)/dist"
- task: CopyFiles@2
inputs:
SourceFolder: "$(Build.SourcesDirectory)"
Contents: "LICENSE"
TargetFolder: "$(Build.ArtifactStagingDirectory)/dist"
- task: Npm@1
inputs:
command: publish
publishRegistry: useExternalRegistry
publishEndpoint: "NPM"