forked from forcedotcom/salesforcedx-apex
-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (35 loc) · 1.12 KB
/
releaseWithCoreBundle.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
name: publish apex-node-bundle
on:
workflow_run:
workflows:
- publish
types:
- completed
workflow_dispatch:
inputs:
branch:
description: 'Set the branch to use for release'
type: string
required: false
default: 'main'
jobs:
get-package-info:
runs-on: ubuntu-latest
outputs:
packageVersion: ${{ 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: CristiCanizales/bundle-publish-scripts/.github/workflows/releaseWithCoreBundle.yml@main
secrets: inherit
with:
branch: ${{ inputs.branch || 'main'}}
packageName: '@salesforce/apex-node-bundle'
packageVersion: ${{ needs.get-package-info.outputs.packageVersion }}