Skip to content

Commit

Permalink
CI: compute package version and use it job spec
Browse files Browse the repository at this point in the history
  • Loading branch information
ManasJayanth committed Jun 10, 2023
1 parent 25af9b1 commit e09e41b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .ci/esy-build-steps.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ steps:
versionSpec: '18.16.0'
- bash: |
NPM_CACHE_DIR=$(npm config get cache)
ESY_BASH_VERSION=$(node -e 'console.log(require("./package.json").version)')
echo "##vso[task.setvariable variable=NPM_CACHE_DIR]$NPM_CACHE_DIR"
echo "##vso[task.setvariable variable=ESY_BASH_VERSION]$ESY_BASH_VERSION"
displayName: Compute pipeline variables
- task: Cache@2
inputs:
key: 'npm | "$(Build.SourcesDirectory)/package-lock.json"'
Expand All @@ -26,8 +29,8 @@ steps:
- task: PublishBuildArtifacts@1
displayName: 'Release Package'
inputs:
PathtoPublish: './esy-bash-0.3.21.tgz'
ArtifactName: npm-package
PathtoPublish: './esy-bash-$(ESY_BASH_VERSION).tgz'
ArtifactName: esy-bash-$(ESY_BASH_VERSION)
- script: node postinstall.js
displayName: "node postinstall.js (iteration 1)"
# TODO Figure e2e test

0 comments on commit e09e41b

Please sign in to comment.