Skip to content

Commit 3152f00

Browse files
authored
Enhance CI_release.yml with artifact directory variable
Added ARTIFACT_DIR variable and echo step to CI workflow.
1 parent 7cb3610 commit 3152f00

File tree

1 file changed

+11
-6
lines changed

1 file changed

+11
-6
lines changed

.github/workflows/CI_release.yml

Lines changed: 11 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,28 @@
11
pool:
22
vmImage: 'ubuntu-latest'
33

4+
variables:
5+
ARTIFACT_DIR: $(Build.ArtifactStagingDirectory)
6+
47
stages:
58
- stage: BuildAndPackage
69
jobs:
710
- job: Package
811
steps:
12+
- script: echo "Artifact dir is $ARTIFACT_DIR"
13+
env:
14+
ARTIFACT_DIR: $(ARTIFACT_DIR)
15+
916
- task: NodeTool@0
1017
inputs:
1118
versionSource: 'spec'
1219
versionSpec: '22.x'
20+
1321
- task: Npm@1
1422
inputs:
1523
command: 'install'
24+
1625
- task: Npm@1
1726
inputs:
18-
command: 'run package'
19-
20-
21-
22-
23-
27+
command: 'custom'
28+
customCommand: 'run package'

0 commit comments

Comments
 (0)