Skip to content

Commit 9b78a22

Browse files
committed
fix: prerelease
1 parent 4f8a6fd commit 9b78a22

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

.github/workflows/onPushToMain.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ jobs:
1414
uses: salesforcecli/github-workflows/.github/workflows/githubRelease.yml@main
1515
secrets: inherit
1616
with:
17-
prerelease: ${{ github.ref_name != 'main' }}
17+
prerelease: ${{ github.ref_name != 'main' }}

.github/workflows/onRelease.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@ name: publish
22

33
on:
44
release:
5-
types: [released]
6-
# support manual release in case something goes wrong and needs to be repeated or tested
5+
types: [published]
76
workflow_dispatch:
87
inputs:
98
tag:
109
description: tag that needs to publish
1110
type: string
1211
required: true
12+
1313
jobs:
1414
# parses the package.json version and detects prerelease tag (ex: beta from 4.4.4-beta.0)
1515
getDistTag:
@@ -22,6 +22,7 @@ jobs:
2222
ref: ${{ github.event.release.tag_name || inputs.tag }}
2323
- uses: salesforcecli/github-workflows/.github/actions/getPreReleaseTag@main
2424
id: distTag
25+
2526
npm:
2627
uses: salesforcecli/github-workflows/.github/workflows/npmPublish.yml@main
2728
needs: [getDistTag]

0 commit comments

Comments
 (0)