Skip to content

Commit

Permalink
fix: adjust semantic-release and gh actions
Browse files Browse the repository at this point in the history
  • Loading branch information
mguellsegarra committed Jan 10, 2024
1 parent 814fc36 commit 67d9284
Show file tree
Hide file tree
Showing 5 changed files with 61 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ name: Release
on:
push:
branches:
# - main
# - develop
- v2
- v2-develop
- alpha
workflow_dispatch:

Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/update_dependent_projects_alpha.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Update dependent projects (ALPHA)
name: Update dependent projects (alpha)

on:
release:
Expand Down
28 changes: 28 additions & 0 deletions .github/workflows/update_dependent_projects_v2-develop.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update dependent projects (v2-develop)

on:
release:
types: [published]
workflow_dispatch:

env:
LIBRARY_NAME: "gisce/react-formiga-table"

jobs:
update-dependents:
if: github.event.release.prerelease == true && !contains(github.event.release.tag_name, '-alpha.') && contains(github.event.release.tag_name, '-rc.')
runs-on: ubuntu-latest
strategy:
matrix:
include:
- project: "gisce/react-ooui"
branch: "v2-develop"
steps:
- name: Call Reusable Workflow for each project
uses: gisce/[email protected]
with:
dependentProject: ${{ matrix.project }}
tagName: ${{ github.event.release.tag_name }}
dependentProjectBranch: ${{ matrix.branch }}
libraryName: ${{ env.LIBRARY_NAME }}
githubToken: ${{ secrets.GH_PAT }}
28 changes: 28 additions & 0 deletions .github/workflows/update_dependent_projects_v2.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Update dependent projects (v2)

on:
release:
types: [published]
workflow_dispatch:

env:
LIBRARY_NAME: "gisce/react-formiga-table"

jobs:
update-dependents:
if: github.event.release.prerelease == false && contains(github.event.release.tag_name, 'v2')
runs-on: ubuntu-latest
strategy:
matrix:
include:
- project: "gisce/react-ooui"
branch: "v2"
steps:
- name: Call Reusable Workflow for each project
uses: gisce/[email protected]
with:
dependentProject: ${{ matrix.project }}
tagName: ${{ github.event.release.tag_name }}
dependentProjectBranch: ${{ matrix.branch }}
libraryName: ${{ env.LIBRARY_NAME }}
githubToken: ${{ secrets.GH_PAT }}
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,9 +92,9 @@
},
"release": {
"branches": [
"main",
"v2",
{
"name": "develop",
"name": "v2-develop",
"prerelease": "rc"
},
{
Expand Down

0 comments on commit 67d9284

Please sign in to comment.