Skip to content

Commit

Permalink
Add postPackage step parameter to 1espackage.yml (#1860)
Browse files Browse the repository at this point in the history
  • Loading branch information
nturinski authored Dec 19, 2024
1 parent ae5a794 commit c445e69
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 0 deletions.
4 changes: 4 additions & 0 deletions azure-pipelines/1esmain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@ parameters:
- name: additionalSetupSteps
type: stepList
default: []
- name: additionalPostPackageSteps
type: stepList
default: []
- name: enableSigning
type: boolean
default: true
Expand Down Expand Up @@ -53,4 +56,5 @@ extends:
parameters:
useAzureFederatedCredentials: ${{ parameters.useAzureFederatedCredentials }}
additionalSetupSteps: ${{ parameters.additionalSetupSteps }}
additionalPostPackageSteps: ${{ parameters.additionalPostPackageSteps }}
enableSigning: ${{ parameters.enableSigning }}
5 changes: 5 additions & 0 deletions azure-pipelines/1esstages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@ parameters:
- name: additionalSetupSteps
type: stepList
default: []
- name: additionalPostPackageSteps
type: stepList
default: []
- name: enableSigning
type: boolean
default: True
Expand All @@ -35,6 +38,8 @@ stages:
additionalSetupSteps: ${{ parameters.additionalSetupSteps }}
- template: ./templates/build.yml
- template: ./templates/1espackage.yml
parameters:
additionalPostPackageSteps: ${{ parameters.additionalPostPackageSteps }}
- template: ./templates/sign.yml
parameters:
enableSigning: ${{ parameters.enableSigning }}
Expand Down
7 changes: 7 additions & 0 deletions azure-pipelines/templates/1espackage.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
parameters:
- name: additionalPostPackageSteps
type: stepList
default: []

steps:
- task: Npm@1
displayName: "\U0001F449 Package"
Expand All @@ -6,3 +11,5 @@ steps:
customCommand: run package
workingDir: $(working_directory)
condition: succeeded()

- ${{ parameters.additionalPostPackageSteps }}

0 comments on commit c445e69

Please sign in to comment.