forked from nordicsemi/pc-nrfconnect-ppk
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathazure-pipelines.yml
More file actions
27 lines (27 loc) · 751 Bytes
/
azure-pipelines.yml
File metadata and controls
27 lines (27 loc) · 751 Bytes
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
trigger:
- main
- release/*
pool:
vmImage: 'Ubuntu-latest'
steps:
- task: NodeTool@0
inputs:
versionSpec: 18
- script: |
set -o errexit -o pipefail
npm ci
npm run check
npm run test
npm run build:prod
npm pack
displayName: 'Build and pack'
- bash: |
set -o errexit -o pipefail
cp *.tgz "$(Build.ArtifactStagingDirectory)"
condition: ne(variables['Build.Reason'], 'PullRequest')
displayName: 'Copy artifacts'
- task: PublishPipelineArtifact@1
inputs:
targetPath: $(Build.ArtifactStagingDirectory)
publishLocation: 'pipeline'
displayName: 'Publish artifacts to artifact storage'