From 2d1fb02a5ada79ba1c9126f929e7b83227b9c169 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cristina=20Ca=C3=B1izales?= <113132642+CristiCanizales@users.noreply.github.com> Date: Mon, 26 Aug 2024 18:54:54 -0300 Subject: [PATCH] Update releaseWithCoreBundle.yml --- .github/workflows/releaseWithCoreBundle.yml | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) diff --git a/.github/workflows/releaseWithCoreBundle.yml b/.github/workflows/releaseWithCoreBundle.yml index 535b8ed9..4f22f468 100644 --- a/.github/workflows/releaseWithCoreBundle.yml +++ b/.github/workflows/releaseWithCoreBundle.yml @@ -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'}} \ No newline at end of file + branch: ${{ inputs.branch || 'main'}} + packageName: '@salesforce/apex-node-bundle' + package-version: ${{ steps.get-package-info.outputs.packageVersion }}