-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
ci: remove config for
next
as a release branch
- Loading branch information
1 parent
cc5159c
commit c1e529b
Showing
6 changed files
with
41 additions
and
133 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,13 @@ | ||
name: Create and Publish Full Release | ||
name: Release | ||
on: | ||
push: | ||
branches: | ||
- main | ||
- '*[0-9].*[0-9].x' | ||
- '*[0-9].x.x' | ||
- dev | ||
- alpha | ||
- beta | ||
# workflow_dispatch makes it possible to trigger the run manually | ||
workflow_dispatch: | ||
|
||
|
@@ -43,28 +46,30 @@ jobs: | |
GH_TOKEN: ${{ secrets.CREATE_RELEASE }} | ||
NPM_TOKEN: ${{ secrets.NPM_TOKEN_ads }} | ||
CI: true | ||
|
||
merge-back-to-next: | ||
needs: semantic-release | ||
if: needs.semantic-release.outputs.new_release_published == 'true' && github.ref_name == 'main' | ||
timeout-minutes: 2 | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Trigger update in lime-crm-building-blocks | ||
if: steps.semantic.outputs.new_release_published == 'true' && github.ref_name == 'main' | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.PRIVATE_REPO_DISPATCH }} | ||
event-type: update-lime-elements | ||
repository: Lundalogik/lime-crm-building-blocks | ||
client-payload: '{"version": "${{ steps.semantic.outputs.new_release_version }}"}' | ||
- name: Trigger update in lime-crm-components | ||
if: steps.semantic.outputs.new_release_published == 'true' && github.ref_name == 'main' | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.PRIVATE_REPO_DISPATCH }} | ||
event-type: update-lime-elements | ||
repository: Lundalogik/lime-crm-components | ||
client-payload: '{"version": "${{ steps.semantic.outputs.new_release_version }}"}' | ||
- name: Trigger update in lime-webclient | ||
if: steps.semantic.outputs.new_release_published == 'true' && github.ref_name == 'main' | ||
uses: peter-evans/repository-dispatch@v2 | ||
with: | ||
token: ${{ secrets.CREATE_RELEASE }} | ||
- name: Set Git config | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "Lime Technologies OSS" | ||
- run: git fetch --unshallow | ||
- run: git rebase | ||
- run: git checkout next | ||
- run: git rebase | ||
- name: Merge release commit back to branch `next` | ||
run: | | ||
git merge --no-ff main -m 'chore(release): auto merge `main` back to `next` after release' | ||
git push | ||
token: ${{ secrets.PRIVATE_REPO_DISPATCH }} | ||
event-type: update-lime-elements | ||
repository: Lundalogik/lime-webclient | ||
client-payload: '{"version": "${{ steps.semantic.outputs.new_release_version }}"}' | ||
|
||
docs: | ||
needs: semantic-release | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters