Skip to content

Test, Build, and Release #95

Test, Build, and Release

Test, Build, and Release #95

name: Test, Build, and Release
on:
workflow_run:
workflows:
- PreRelease
types:
- completed
jobs:
get-version:
if: ${{ github.event_name == 'workflow_run' && github.event.workflow_run.conclusion == 'success' }}
name: 'Get Release Version'
runs-on: ubuntu-latest
outputs:
RELEASE_VERSION: ${{ steps.getMainVersion.outputs.version }}
steps:
- uses: actions/checkout@v4
with:
ref: 'main'
- id: getMainVersion
run: |
echo "version="$(node -pe "require('./packages/salesforcedx-vscode/package.json').version")"" >> $GITHUB_OUTPUT
- run: echo "Main Release Version is ${{ steps.getMainVersion.outputs.version }}"
build-and-test:
uses: ./.github/workflows/buildAndTest.yml
needs: [get-version]
with:
branch: 'main'
label: ${{ needs.get-version.outputs.RELEASE_VERSION }}
release:
needs: [build-and-test]
secrets: inherit
uses: ./.github/workflows/release.yml