Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
phpsa authored Aug 4, 2023
1 parent 01145ab commit a42e4ea
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Semantic Release
name: Release

on: [workflow_dispatch]
on:
push:
branches:
- master
- main
- next
- next-major
- alpha
- beta

jobs:
release:
Expand All @@ -11,7 +19,7 @@ jobs:
uses: actions/checkout@v3

- name: Semantic Release
uses: cycjimmy/semantic-release-action@v3
uses: ./
id: semantic
with:
branches: |
Expand All @@ -31,10 +39,16 @@ jobs:
}
]
extra_plugins: |
@semantic-release/commit-analyzer
@semantic-release/git
@semantic-release/changelog
@semantic-release/exec
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SEMANTIC_RELEASE_PACKAGE: Laravel Addressable
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}



- name: Push updates to branch for major version
if: steps.semantic.outputs.new_release_published == 'true'
run: "git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git HEAD:refs/heads/v${{steps.semantic.outputs.new_release_major_version}}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit a42e4ea

Please sign in to comment.