From 9b78a22599d1e06f3ff7413c245db934275627c4 Mon Sep 17 00:00:00 2001 From: Peter Hale Date: Mon, 17 Apr 2023 14:08:07 -0600 Subject: [PATCH] fix: prerelease --- .github/workflows/onPushToMain.yml | 2 +- .github/workflows/onRelease.yml | 5 +++-- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/onPushToMain.yml b/.github/workflows/onPushToMain.yml index 6779487..6cf17c5 100644 --- a/.github/workflows/onPushToMain.yml +++ b/.github/workflows/onPushToMain.yml @@ -14,4 +14,4 @@ jobs: uses: salesforcecli/github-workflows/.github/workflows/githubRelease.yml@main secrets: inherit with: - prerelease: ${{ github.ref_name != 'main' }} + prerelease: ${{ github.ref_name != 'main' }} \ No newline at end of file diff --git a/.github/workflows/onRelease.yml b/.github/workflows/onRelease.yml index cd9d354..2cbf534 100644 --- a/.github/workflows/onRelease.yml +++ b/.github/workflows/onRelease.yml @@ -2,14 +2,14 @@ name: publish on: release: - types: [released] - # support manual release in case something goes wrong and needs to be repeated or tested + types: [published] workflow_dispatch: inputs: tag: description: tag that needs to publish type: string required: true + jobs: # parses the package.json version and detects prerelease tag (ex: beta from 4.4.4-beta.0) getDistTag: @@ -22,6 +22,7 @@ jobs: ref: ${{ github.event.release.tag_name || inputs.tag }} - uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main id: distTag + npm: uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main needs: [getDistTag]