Skip to content

Commit

Permalink
fix: prerelease
Browse files Browse the repository at this point in the history
  • Loading branch information
peternhale committed Apr 17, 2023
1 parent 4f8a6fd commit 9b78a22
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/onPushToMain.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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' }}
5 changes: 3 additions & 2 deletions .github/workflows/onRelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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]
Expand Down

0 comments on commit 9b78a22

Please sign in to comment.