From bd74e52353fd16a4c8b4a1f1807b54ab80ffcee6 Mon Sep 17 00:00:00 2001 From: Zita Szupera Date: Mon, 26 Aug 2024 17:06:52 +0200 Subject: [PATCH] chore: set up release for version 4 --- .github/workflows/workflow.yml | 10 +++++----- package.json | 5 +++-- 2 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index 6c54879d..62767fd3 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -4,12 +4,12 @@ on: branches: - master - beta - - angular-18 + - version-4 pull_request: branches: - master - beta - - angular-18 + - version-4 jobs: workflow: runs-on: ubuntu-latest @@ -70,13 +70,13 @@ jobs: yarn vercel build ${{ github.ref == 'refs/heads/master' && '--prod' || '' }} --token=${{ secrets.VERCEL_TOKEN }} && yarn vercel deploy ${{ github.ref == 'refs/heads/master' && '--prod' || '' }} --prebuilt --token=${{ secrets.VERCEL_TOKEN }} - name: Copy docs from stream-chat-css - run: npm run ${{ (github.ref == 'refs/heads/beta' || contains(github.head_ref, 'beta')) && 'copy-css-docs:v5' || 'copy-css-docs' }} + run: npm run ${{ (github.ref == 'refs/heads/version-4' || contains(github.head_ref, 'version-4')) && 'copy-css-docs:v4' || 'copy-css-docs' }} - name: Generate docs run: | - npm run ${{ (github.ref == 'refs/heads/beta' || contains(github.head_ref, 'beta')) && 'generate-docs:v5' || 'generate-docs' }} + npm run ${{ (github.ref == 'refs/heads/version-4' || contains(github.head_ref, 'version-4')) && '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/beta') && 'production' || 'staging' }} + target-branch: ${{ (github.ref == 'refs/heads/master' || github.ref == 'refs/heads/version-4') && 'production' || 'staging' }} env: DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }} diff --git a/package.json b/package.json index 65f84041..143439e1 100644 --- a/package.json +++ b/package.json @@ -35,10 +35,10 @@ "typedoc:services": "typedoc --cleanOutputDir true --excludeConstructors true --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --out temp-service-docs --exclude '!**/*service.ts' --excludeNotDocumented --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts", "typedoc:components": "typedoc --cleanOutputDir true --excludeConstructors true --sort source-order --hideBreadcrumbs true --hideInPageTOC true --excludePrivate true --excludeNotDocumented --out temp-component-docs --exclude '!**/*component.ts' --tsconfig projects/stream-chat-angular/tsconfig.lib.json projects/stream-chat-angular/src/public-api.ts", "copy-docs": "ts-node copy-generated-service-docs.ts docusaurus/docs/Angular/services & (ts-node remove-generated-component-docs-content docusaurus/docs/Angular/components && ts-node copy-generated-component-docs.ts docusaurus/docs/Angular/components)", - "copy-docs:v5": "ts-node copy-generated-service-docs.ts docusaurus/angular_versioned_docs/version-5/services & (ts-node remove-generated-component-docs-content docusaurus/angular_versioned_docs/version-5/components && ts-node copy-generated-component-docs.ts docusaurus/angular_versioned_docs/version-5/components)", + "copy-docs:v4": "ts-node copy-generated-service-docs.ts docusaurus/angular_versioned_docs/version-4/services & (ts-node remove-generated-component-docs-content docusaurus/angular_versioned_docs/version-4/components && ts-node copy-generated-component-docs.ts docusaurus/angular_versioned_docs/version-4/components)", "copy-css": "rm -rf projects/stream-chat-angular/src/assets/styles && copyfiles --up 4 \"node_modules/@stream-io/stream-chat-css/dist/**/*\" projects/stream-chat-angular/src/assets/styles && copyfiles --up 5 \"node_modules/@stream-io/stream-chat-css/dist/assets/**/*\" projects/stream-chat-angular/src/assets/styles/v2/assets", "copy-css-docs": "./copy-css-docs.sh node_modules/@stream-io/stream-chat-css/docs docusaurus/docs/Angular", - "copy-css-docs:v5": "./copy-css-docs.sh node_modules/@stream-io/stream-chat-css/docs docusaurus/angular_versioned_docs/version-5" + "copy-css-docs:v4": "./copy-css-docs.sh node_modules/@stream-io/stream-chat-css/docs docusaurus/angular_versioned_docs/version-4" }, "lint-staged": { "**/*": [ @@ -49,6 +49,7 @@ "release": { "branches": [ "master", + "version-4", { "name": "beta", "prerelease": true