Skip to content

Commit 83b6f9c

Browse files
committed
Add publish-dev-release.yml pipeline for publishing preview releases
1 parent cf912c6 commit 83b6f9c

File tree

1 file changed

+22
-0
lines changed

1 file changed

+22
-0
lines changed

eng/pipelines/publish-dev-release.yml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
trigger: none
2+
pr: none
3+
4+
jobs:
5+
- job: PreviewRelease
6+
7+
pool:
8+
vmImage: 'macOS-10.15'
9+
10+
steps:
11+
- script: sudo xcode-select --switch /Applications/Xcode_11.5.app
12+
displayName: 'Use Xcode 11.5'
13+
14+
- script: npm install
15+
displayName: Build
16+
17+
- script : |
18+
export DEV_VERSION=$(node -p -e "require('./package.json').version")-dev.$BUILD_BUILDNUMBER
19+
npm version --no-git-tag-version $DEV_VERSION
20+
npm pack
21+
npx publish-release --token $(azuresdk-github-pat) --repo autorest.swift --owner Azure --name "AutoRest for Swift v$DEV_VERSION" --tag v$DEV_VERSION --notes='Preview release of AutoRest for Swift' --prerelease --editRelease false --assets autorest-swift-$DEV_VERSION.tgz --target_commitish $(Build.SourceBranchName)
22+
displayName: 'Publish development release'

0 commit comments

Comments
 (0)