Skip to content

Commit

Permalink
chore: update release config after branch rename
Browse files Browse the repository at this point in the history
  • Loading branch information
szuperaz committed Aug 28, 2024
1 parent 1fbfe14 commit 2a62caa
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,12 @@ on:
branches:
- master
- beta
- version-4
- 4.x.x
pull_request:
branches:
- master
- beta
- version-4
- 4.x.x
jobs:
workflow:
runs-on: ubuntu-latest
Expand Down Expand Up @@ -58,13 +58,13 @@ jobs:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Copy docs from stream-chat-css
run: npm run ${{ (github.ref == 'refs/heads/version-4' || contains(github.head_ref, 'version-4')) && 'copy-css-docs:v4' || 'copy-css-docs' }}
run: npm run ${{ (github.ref == 'refs/heads/4.x.x' || contains(github.head_ref, '4.x.x')) && 'copy-css-docs:v4' || 'copy-css-docs' }}
- name: Generate docs
run: |
npm run ${{ (github.ref == 'refs/heads/version-4' || contains(github.head_ref, 'version-4')) && 'generate-docs:v4' || 'generate-docs' }}
npm run ${{ (github.ref == 'refs/heads/4.x.x' || contains(github.head_ref, '4.x.x')) && 'generate-docs:v4' || 'generate-docs' }}
- name: Push to docusaurus
uses: GetStream/push-stream-chat-docusaurus-action@main
with:
target-branch: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/version-4') && 'production' || 'staging' }}
target-branch: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/4.x.x') && 'production' || 'staging' }}
env:
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"release": {
"branches": [
"master",
"version-4",
"4.x.x",
{
"name": "beta",
"prerelease": true
Expand Down

0 comments on commit 2a62caa

Please sign in to comment.