Skip to content

Commit

Permalink
workflow updated
Browse files Browse the repository at this point in the history
  • Loading branch information
SinaSeylani committed Oct 21, 2024
1 parent 5d96823 commit 3c2e4fe
Showing 1 changed file with 22 additions and 4 deletions.
26 changes: 22 additions & 4 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,31 @@ jobs:
git fetch --unshallow
fi
- name: Switch to Release Branch (Major)
if: ${{ github.event.inputs.release-type == 'major' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-major }}
- name: Switch to Release Branch (Minor)
if: ${{ github.event.inputs.release-type == 'minor' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-minor }}
- name: Switch to Release Branch (Patch)
if: ${{ github.event.inputs.release-type == 'patch' }}
run: |
git checkout ${{ needs.determine-next-versions.outputs.branch-patch }}
- name: Generate Change File for Major Release
if: ${{ github.event.inputs.release-type == 'major' }}
run: |
mkdir -p change
echo '{
"packageName": "@passageidentity/passage-react-native",
"type": "major",
"dependentChangeType": "none", # Add this field to avoid errors
"comment": "Automated major version bump"
}' > change/$(uuidgen).json
}' > change/@passageidentity-passage-react-native-$(uuidgen).json
- name: Generate Change File for Minor Release
if: ${{ github.event.inputs.release-type == 'minor' }}
Expand All @@ -112,8 +128,9 @@ jobs:
echo '{
"packageName": "@passageidentity/passage-react-native",
"type": "minor",
"dependentChangeType": "none", # Add this field to avoid errors
"comment": "Automated minor version bump"
}' > change/$(uuidgen).json
}' > change/@passageidentity-passage-react-native-$(uuidgen).json
- name: Generate Change File for Patch Release
if: ${{ github.event.inputs.release-type == 'patch' }}
Expand All @@ -122,8 +139,9 @@ jobs:
echo '{
"packageName": "@passageidentity/passage-react-native",
"type": "patch",
"dependentChangeType": "none", # Add this field to avoid errors
"comment": "Automated patch version bump"
}' > change/$(uuidgen).json
}' > change/@passageidentity-passage-react-native-$(uuidgen).json
- name: Configure Git
run: |
Expand Down Expand Up @@ -152,7 +170,7 @@ jobs:
git push origin ${{ needs.determine-next-versions.outputs.branch-patch }}
- name: Beachball Check
run: npm run beachball:check
run: npm run beachball:check

- name: Beachball Bump
run: npm run beachball:bump
Expand Down

0 comments on commit 3c2e4fe

Please sign in to comment.