Skip to content

Commit

Permalink
Fix dev build versioning in publish-dev-release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
daviwil committed Jan 16, 2020
1 parent 173cc1e commit 9de7bcc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .scripts/publish-dev-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,8 @@ steps:
displayName: 'npm install and build'

- script: |
export DEV_VERSION= $(node -p -e "require('./package.json').version")-dev.$BUILD_BUILD_NUMBER
npm version --no-git-tag-version $(node -p -e "require('./package.json').version")-dev.$BUILD_BUILD_NUMBER
export DEV_VERSION=$(node -p -e "require('./package.json').version")-dev.$BUILD_BUILDNUMBER
npm version --no-git-tag-version $DEV_VERSION
npm pack
npx publish-release --token $(Github-azuresdkci-personalaccesstoken) --repo autorest.typescript --owner azure --name v$DEV_VERSION --tag v$DEV_VERSION --notes='prerelease build' --prerelease --editRelease false --assets autorest-typescript-$DEV_VERSION.tgz --target_commitish $(Build.SourceBranchName)
displayName: 'Publish to GitHub'

0 comments on commit 9de7bcc

Please sign in to comment.