Skip to content

Commit

Permalink
fix: combine release workflows
Browse files Browse the repository at this point in the history
  • Loading branch information
iowillhoit committed Jun 29, 2023
1 parent dc7ee44 commit 7d8a31f
Show file tree
Hide file tree
Showing 3 changed files with 31 additions and 28 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/create-github-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
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@ew/tripss
secrets: inherit
with:
prerelease: ${{ inputs.prerelease }}
# 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 == 'workflow_dispatch' && 'false' || 'true' }}
docs:
# most repos won't use this
# depends on previous job to avoid git collisions, not for any functionality reason
if: ${{ github.ref_name == 'main' }}
uses: salesforcecli/github-workflows/.github/workflows/publishTypedoc.yml@main
secrets: inherit
needs: release
27 changes: 0 additions & 27 deletions .github/workflows/manual-github-release.yml

This file was deleted.

Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# test!
name: version, tag and github release

on:
push:
branches:
Expand Down

0 comments on commit 7d8a31f

Please sign in to comment.