build(CI): Fix release stage by simplifying build configuration
@@ -14,10 +14,6 @@ variables:
isMain: $[eq(variables['Build.SourceBranch'], 'refs/heads/master')]
npm_config_cache: $(Pipeline.Workspace)/.npm
-stages:
- - stage: Main
- jobs:
- - job: Build
steps:
- task: NodeTool@0
inputs:
@@ -56,15 +52,12 @@ stages:
# ARGOS_TOKEN: $(ARGOS_TOKEN)
# SAUCE_ACCESS_KEY: $(SAUCE_ACCESS_KEY)
- - stage: Release
- condition: and(succeeded(), eq(variables.isMain, true))
- jobs:
- - job: Release
- steps:
- script: ASSET_PATH=/thema/ npm run docs
+ condition: and(succeeded(), eq(variables.isMain, true))
displayName: 'Build documentation site'
- script: npx semantic-release
+ condition: and(succeeded(), eq(variables.isMain, true))
displayName: Release package & Publish documentation site
env:
GITHUB_TOKEN: $(GITHUB_TOKEN)
