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]