From 4a2724f8537ba0d66f75b5097b7a27ba0795ef8b Mon Sep 17 00:00:00 2001 From: mshanemc Date: Wed, 21 Sep 2022 09:28:40 -0500 Subject: [PATCH] feat: manual release --- .github/workflows/manualRelease.yml | 35 +++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 .github/workflows/manualRelease.yml diff --git a/.github/workflows/manualRelease.yml b/.github/workflows/manualRelease.yml new file mode 100644 index 0000000..8ea9ac1 --- /dev/null +++ b/.github/workflows/manualRelease.yml @@ -0,0 +1,35 @@ +name: manual release + +on: + workflow_dispatch: + +jobs: + release: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - name: Conventional Changelog Action + id: changelog + uses: TriPSs/conventional-changelog-action@d360fad3a42feca6462f72c97c165d60a02d4bf2 + # overriding some of the basic behaviors to just get the changelog + with: + git-user-name: SF-CLI-BOT + git-user-email: alm-cli@salesforce.com + github-token: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} + output-file: false + # always do the release, even if there are no semantic commits + skip-on-empty: false + # avoids the default `v` so all the later actions don't have to remove it + tag-prefix: '' + - uses: notiz-dev/github-action-json-property@2192e246737701f108a4571462b76c75e7376216 + id: packageVersion + with: + path: 'package.json' + prop_path: 'version' + - name: Create Github Release + uses: actions/create-release@v1 + env: + GITHUB_TOKEN: ${{ secrets.SF_CLI_BOT_GITHUB_TOKEN }} + with: + tag_name: ${{ steps.packageVersion.outputs.prop }} + release_name: ${{ steps.packageVersion.outputs.prop }}