Skip to content

Commit 612dc59

Browse files
chore: update workflows (#629)
Co-authored-by: peternhale <peternhale@users.noreply.github.com>
1 parent 69911be commit 612dc59

File tree

4 files changed

+26
-48
lines changed

4 files changed

+26
-48
lines changed
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
name: create-github-release
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
- prerelease/**
8+
tags-ignore:
9+
- '*'
10+
workflow_dispatch:
11+
inputs:
12+
prerelease:
13+
type: string
14+
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.'
15+
16+
jobs:
17+
release:
18+
uses: salesforcecli/github-workflows/.github/workflows/create-github-release.yml@main
19+
secrets: inherit
20+
with:
21+
prerelease: ${{ inputs.prerelease }}
22+
# If this is a push event, we want to skip the release if there are no semantic commits
23+
# However, if this is a manual release (workflow_dispatch), then we want to disable skip-on-empty
24+
# This helps recover from forgetting to add semantic commits ('fix:', 'feat:', etc.)
25+
skip-on-empty: ${{ github.event_name == 'push' }}

.github/workflows/manualRelease.yml

-36
This file was deleted.

.github/workflows/onPushToMain.yml

-11
This file was deleted.

.github/workflows/slackNotification.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ name: Slack Notification
33
on:
44
workflow_run:
55
workflows:
6-
- version, tag and github release
6+
- create-github-release
77
- publish
88
types:
99
- completed

0 commit comments

Comments
 (0)