Skip to content

Commit

Permalink
Update releaseWithCoreBundle.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
CristiCanizales authored Aug 26, 2024
1 parent 7f6924b commit 2d1fb02
Showing 1 changed file with 16 additions and 1 deletion.
17 changes: 16 additions & 1 deletion .github/workflows/releaseWithCoreBundle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,24 @@ on:
default: 'main'

jobs:
get-package-info:
runs-on: ubuntu-latest
outputs:
package_version: ${{ steps.getVersion.outputs.packageVersion }}
steps:
- name: Check out repository
uses: actions/checkout@v3

- name: Extract package version
id: getVersion
run: |
echo "packageVersion=$(node -p "require('./package.json').version")" >> $GITHUB_OUTPUT
call-release-workflow:
if: ${{ inputs.branch || (github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success')}}
needs: ['get-package-info']
uses: forcedotcom/bundle-publish-scripts/.github/workflows/releaseWithCoreBundle.yml@main
secrets: inherit
with:
branch: ${{ inputs.branch || 'main'}}
branch: ${{ inputs.branch || 'main'}}
packageName: '@salesforce/apex-node-bundle'
package-version: ${{ steps.get-package-info.outputs.packageVersion }}

0 comments on commit 2d1fb02

Please sign in to comment.