Skip to content

Commit

Permalink
updated for new node extension
Browse files Browse the repository at this point in the history
  • Loading branch information
maikvandergaag committed Oct 30, 2023
1 parent e9bf993 commit 1132ee8
Show file tree
Hide file tree
Showing 5 changed files with 66 additions and 5 deletions.
6 changes: 6 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion pipelines/powerbiactions-xplat.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ stages:
demands: azureps
continueOnError: false
steps:
- template: steps/build.yml
- template: steps/build-node.yml
parameters:
extensiondirectory: "azuredevops/powerbiactions-xplat/powerbiactionsxplat"
- stage: Beta
displayName: Test
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
Expand Down
51 changes: 51 additions & 0 deletions pipelines/steps/build-node.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
parameters:
- name: extensiondirectory
type: string

steps:
- task: TfxInstaller@4
displayName: "Install TFX"
inputs:
checkLatest: true
- task: Npm@1
inputs:
command: 'install'
workingDir: '${{ parameters.extensiondirectory }}'
- task: Bash@3
displayName: Compile Javascript
inputs:
targetType: "inline"
script: |
cd '${{ parameters.extensiondirectory }}'
tsc
- task: PackageAzureDevOpsExtension@4
displayName: 'Package extension'
inputs:
rootFolder: '$(rootfolder)'
outputVariable: 'ExOutputPath'
publisherId: 'maikvandergaag'
extensionTag: 'alpha'
extensionVersion: '$(Build.Buildnumber)'
updateTasksVersion: true
extensionVisibility: 'private'
extensionPricing: 'free'
- task: PublishPipelineArtifact@1
displayName: 'Publish artifact'
inputs:
targetPath: '$(ExOutputPath)'
artifact: '$(artifactName)'
- task: versioncounter@1
displayName: 'Update - Version number (develop)'
condition: and(succeeded(), ne(variables['Build.Reason'], 'PullRequest'))
inputs:
VersionVariable: 'buildversion'
UpdateMinorVersion: false
DevOpsPat: '$(devops-pat-versionnumber)'
- task: versioncounter@1
displayName: 'Update - Version number (Pull Request)'
condition: and(succeeded(), and(eq(variables['Build.Reason'], 'PullRequest'), eq(variables['System.PullRequest.TargetBranch'], 'refs/heads/master')))
inputs:
VersionVariable: 'buildversion'
UpdateMinorVersion: false
OnlyUpdateMinor: true
DevOpsPat: '$(devops-pat-versionnumber)'
5 changes: 3 additions & 2 deletions pipelines/steps/publish.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
steps:
- task: TfxInstaller@3
- task: TfxInstaller@4
displayName: "Install TFX"
inputs:
checkLatest: true
- task: ms-devlabs.vsts-developer-tools-build-tasks.publish-extension-build-task.PublishExtension@3
- task: PublishAzureDevOpsExtension@4
displayName: "Publish Extension"
inputs:
connectTo: 'VsTeam'
connectedServiceName: "Visual Studio Marketplace"
fileType: vsix
vsixFile: '$(Pipeline.Workspace)\$(artifactName)\*.vsix'
Expand Down
5 changes: 3 additions & 2 deletions pipelines/steps/test.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
steps:
- task: TfxInstaller@3
- task: TfxInstaller@4
displayName: "Install TFX"
inputs:
checkLatest: true
- task: ms-devlabs.vsts-developer-tools-build-tasks.publish-extension-build-task.PublishExtension@3
- task: PublishAzureDevOpsExtension@4
displayName: "Publish Extension"
inputs:
connectTo: 'VsTeam'
connectedServiceName: "Visual Studio Marketplace"
fileType: vsix
vsixFile: '$(Pipeline.Workspace)\$(artifactName)\*.vsix'
Expand Down

0 comments on commit 1132ee8

Please sign in to comment.