Merge pull request #439 from forcedotcom/dependabot-npm_and_yarn-sale… #41
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
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: inherit | |
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' }} | |
# Leaving this step here for when we want to publish API docs. | |
# docs: | |
# needs: release | |
# if: github.ref_name == 'main' | |
# uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main | |
# secrets: inherit |