From 2a62caa274d7fa109f6c622f814dc461adc9e804 Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Wed, 28 Aug 2024 10:17:23 +0200 Subject: [PATCH] chore: update release config after branch rename --- .github/workflows/workflow.yml | 10 +++++----- package.json | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index d104db5b..0c580673 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -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 @@ -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 }} diff --git a/package.json b/package.json index e6e88feb..ec30c30d 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ "release": { "branches": [ "master", - "version-4", + "4.x.x", { "name": "beta", "prerelease": true