-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: add gha-prelease workflow [no ci] (#766)
- Loading branch information
1 parent
3c8cc06
commit 58154c4
Showing
5 changed files
with
40 additions
and
66 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,33 @@ | ||
name: create-github-release | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
- prerelease/** | ||
tags-ignore: | ||
- "*" | ||
workflow_dispatch: | ||
inputs: | ||
prerelease: | ||
type: string | ||
description: "Name to use for the prerelease: beta, dev, etc. NOTE: If this is already set in the package.json, it does not need to be passed in here." | ||
|
||
jobs: | ||
release: | ||
uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@main | ||
secrets: | ||
SVC_CLI_BOT_GITHUB_TOKEN: ${{ secrets.SVC_CLI_BOT_GITHUB_TOKEN }} | ||
with: | ||
prerelease: ${{ inputs.prerelease }} | ||
# If this is a push event, we want to skip the release if there are no semantic commits | ||
# However, if this is a manual release (workflow_dispatch), then we want to disable skip-on-empty | ||
# This helps recover from forgetting to add semantic commits ('fix:', 'feat:', etc.) | ||
skip-on-empty: ${{ github.event_name == 'push' }} | ||
# docs: | ||
# # Most repos won't use this | ||
# # Depends on the 'release' job to avoid git collisions, not for any functionality reason | ||
# needs: release | ||
# secrets: inherit | ||
# if: ${{ github.ref_name == 'main' }} | ||
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters