Skip to content

Commit 406d8e7

Browse files
author
azure-pipelines-bot
committed
Added PS Gallery publish steps
1 parent 718a306 commit 406d8e7

File tree

3 files changed

+20
-23
lines changed

3 files changed

+20
-23
lines changed
+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
steps:
2+
- ${{ if eq(variables['Build.SourceBranch'], 'refs/heads/master') }}:
3+
# npm install
4+
- task: Npm@1
5+
displayName: npm install for powershell
6+
inputs:
7+
command: install
8+
workingDir: powershell
9+
10+
- script: node make.js build
11+
displayName: node make.js build
12+
workingDirectory: powershell
13+
- task: PowerShell@2
14+
inputs:
15+
workingDirectory: powershell
16+
filePath: './powershell/publish.ps1'
17+
arguments: '-ApiKey $(PSGalleryApiKey)'
18+
pwsh: true
19+

azure-pipelines.yml

+1
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ jobs:
2222
nodeVersion: $(nodeVersion)
2323

2424
- template: azure-pipelines-steps-test-build.yml
25+
- template: azure-pipelines-steps-module-publish.yml
2526

2627
#################################################
2728
- job: linux

ci/powershell/publish-job.yml

-23
This file was deleted.

0 commit comments

Comments
 (0)