Skip to content

Commit

Permalink
chore: update workflows (#629)
Browse files Browse the repository at this point in the history
Co-authored-by: peternhale <[email protected]>
  • Loading branch information
CristiCanizales and peternhale authored Oct 25, 2024
1 parent 69911be commit 612dc59
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 48 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
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' }}
36 changes: 0 additions & 36 deletions .github/workflows/manualRelease.yml

This file was deleted.

11 changes: 0 additions & 11 deletions .github/workflows/onPushToMain.yml

This file was deleted.

2 changes: 1 addition & 1 deletion .github/workflows/slackNotification.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Slack Notification
on:
workflow_run:
workflows:
- version, tag and github release
- create-github-release
- publish
types:
- completed
Expand Down

0 comments on commit 612dc59

Please sign in to comment.