Skip to content

Commit

Permalink
feat: allow semantic release to run on all branches
Browse files Browse the repository at this point in the history
  • Loading branch information
umglurf committed Oct 19, 2024
1 parent d4109ce commit 769099f
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions .github/workflows/workflow.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -161,8 +161,11 @@ jobs:
git-tag: ${{ steps.version.outputs.git-tag }}
name: ${{ steps.version.outputs.name }}
runs-on: ${{ inputs.runs-on }}
if: inputs.release-enabled && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
# if: inputs.release-enabled && (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main')
if: inputs.release-enabled
steps:
- name: Debug
run: echo ${{ github.event.name }}
- name: Checkout
uses: actions/[email protected]
with:
Expand Down Expand Up @@ -196,8 +199,10 @@ jobs:
run: npm ci
- uses: codfish/[email protected]
id: release
env:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
dry-run: ${{ !(github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main') }}
- name: Get version
id: version
shell: bash
Expand Down Expand Up @@ -232,11 +237,10 @@ jobs:
echo "release-notes<<EOF" >> $GITHUB_OUTPUT
echo "${{ steps.release.outputs.release-notes }}" >> $GITHUB_OUTPUT
echo "EOF" >> $GITHUB_OUTPUT
echo "type=${{ steps.release.outputs.type }}" >> $GITHUB_OUTPUT
echo "channel=${{ steps.release.outputs.channel }}" >> $GITHUB_OUTPUT
echo "git-head=${{ steps.release.outputs.git-head }}" >> $GITHUB_OUTPUT
echo "git-tag=${{ steps.release.outputs.git-tag }}" >> $GITHUB_OUTPUT
echo "name=${{ steps.release.outputs.name }}" >> $GITHUB_OUTPUT
fi

0 comments on commit 769099f

Please sign in to comment.