Skip to content

Commit

Permalink
[Actions] Updated .github/actions/npm/action.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
credfeto committed Sep 16, 2024
1 parent e3068e8 commit 602d3f2
Showing 1 changed file with 18 additions and 8 deletions.
26 changes: 18 additions & 8 deletions .github/actions/npm/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,10 @@ inputs:
description: 'Visibility of the repo'
required: true

# Octopus
OCTOPUS_DEPLOY_PACKAGE:
# DEPLOYMENT
PROJECT_TO_PUBLISH:
description: 'Package (root) to deploy'
required: false
OCTOPUS_DEPLOY_PACKAGE_ZIP:
description: 'Package (root) to deploy when zipped'
required: false

runs:
using: "composite"
Expand Down Expand Up @@ -87,7 +84,14 @@ runs:
- if: inputs.NPM_SIGNING == 'true'
name: "NPM: Build Package"
shell: bash
run: dotnet buildcontentpackage -SourcePath "${{github.workspace}}/src/dist" -targetPath "${{github.workspace}}" -version "${{inputs.BUILD_VERSION}}" -WarningAsErrors false -Wallet "${{github.workspace}}/Wallet.json" -WalletPassword "${{inputs.NPM_CONTENT_PACKAGE_WALLET_PASSWORD}}"
run: |
dotnet buildcontentpackage \
-SourcePath "${{github.workspace}}/src/dist" \
-targetPath "${{github.workspace}}" \
-version "${{inputs.BUILD_VERSION}}" \
-WarningAsErrors false \
-Wallet "${{github.workspace}}/Wallet.json" \
-WalletPassword "${{inputs.NPM_CONTENT_PACKAGE_WALLET_PASSWORD}}"
env:
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand All @@ -107,7 +111,7 @@ runs:
run: |
ls -la "${{github.workspace}}"
echo "-----------------------"
ls "${{github.workspace}}/${{inputs.OCTOPUS_DEPLOY_PACKAGE_ZIP}}-${{env.BUILD_VERSION}}.nupkg"
ls "${{github.workspace}}/${{inputs.PROJECT_TO_PUBLISH}}-${{env.BUILD_VERSION}}.nupkg"
- if: inputs.NPM_SIGNING == 'true'
name: "NPM: Create Store Signing Wallet"
Expand All @@ -121,7 +125,13 @@ runs:
- if: inputs.NPM_SIGNING == 'true'
name: "NPM: Store Sign Package"
shell: bash
run: dotnet signcontentpackage -Package "${{github.workspace}}/${{inputs.OCTOPUS_DEPLOY_PACKAGE_ZIP}}-${{inputs.BUILD_VERSION}}.nupkg" -WarningAsErrors true -Wallet false -Wallet "${{steps.store-siging-wallet.outputs.file}}" -WalletPassword "${{inputs.NPM_PACKAGE_STORE_SIGNING_WALLET_PASSWORD}}"
run: |
dotnet signcontentpackage \
-Package "${{github.workspace}}/${{inputs.PROJECT_TO_PUBLISH}}-${{inputs.BUILD_VERSION}}.nupkg" \
-WarningAsErrors true \
-Wallet false \
-Wallet "${{steps.store-siging-wallet.outputs.file}}" \
-WalletPassword "${{inputs.NPM_PACKAGE_STORE_SIGNING_WALLET_PASSWORD}}"
env:
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
Expand Down

0 comments on commit 602d3f2

Please sign in to comment.