Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions .github/workflows/Build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,16 @@ on:
description: 'Correlates the origin job with the child instance since process start does not return an ID.'
type: string
required: false
isRelease:
description: 'Indicates that the calling workflow was triggered by a release.'
type: boolean
required: false
default: false
isPrerelease:
description: 'Indicates that the calling release is a prerelease.'
type: boolean
required: false
default: false
outputs:
channel:
description: 'The channel that the build should be published to.'
Expand All @@ -38,6 +48,9 @@ jobs:

# Execute the workflow
uses: ./.github/workflows/Metadata.yml
with:
isRelease: ${{ inputs.isRelease }}
isPrerelease: ${{ inputs.isPrerelease }}

# Execution session that builds the artifacts that are used for deployment
Build-Prod:
Expand Down
14 changes: 12 additions & 2 deletions .github/workflows/Metadata.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,16 @@ on:
description: 'Correlates the origin job with the child instance since process start does not return an ID.'
type: string
required: false
isRelease:
description: 'Indicates that the calling workflow was triggered by a release.'
type: boolean
required: false
default: false
isPrerelease:
description: 'Indicates that the calling release is a prerelease.'
type: boolean
required: false
default: false
outputs:
channel:
description: 'The channel that the build should be published to.'
Expand Down Expand Up @@ -66,9 +76,9 @@ jobs:
id: computedChannel
background: true
run: |
if [ "${{ github.event_name }}" = "release" ] && [ "${{ github.event.release.prerelease }}" = "true" ]; then
if [ "${{ inputs.isRelease }}" = "true" ] && [ "${{ inputs.isPrerelease }}" = "true" ]; then
echo "channel=beta" >> "$GITHUB_OUTPUT"
elif [ "${{ github.event_name }}" = "release" ]; then
elif [ "${{ inputs.isRelease }}" = "true" ]; then
echo "channel=stable" >> "$GITHUB_OUTPUT"
else
echo "channel=alpha" >> "$GITHUB_OUTPUT"
Expand Down
3 changes: 3 additions & 0 deletions .github/workflows/Publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,9 @@ jobs:

# Execute the workflow
uses: ./.github/workflows/Build.yml
with:
isRelease: true
isPrerelease: ${{ github.event.release.prerelease }}

# Execution Session that deploys the artifact to NPM
Deploy-NPM:
Expand Down
1 change: 1 addition & 0 deletions .github/workflows/Security-AdvancedSecretScan.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ jobs:
# Sets the scopes available to the github_token injected to the GH Actions runner
permissions:
contents: read
issues: write

steps:
# Calculate the depth and branch for checkout optimization
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

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

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"version": "0.0.5",
"version": "0.0.6",
"name": "@software-hardware-integration-lab/log-engine",
"description": "Logging engine with ability to add plugins for any destination",
"author": {
Expand Down
Loading