Skip to content

fix: don't send message on enter if isComposing is true #1236

fix: don't send message on enter if isComposing is true

fix: don't send message on enter if isComposing is true #1236

Workflow file for this run

name: Tests and release
on:
push:
branches:
- master
- beta
- 4.x.x
- 4.x.x-beta
pull_request:
branches:
- master
- beta
- 4.x.x
- 4.x.x-beta
jobs:
workflow:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [16.x]
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
- name: Cache node modules
uses: actions/cache@v1
with:
path: ~/.npm
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.os }}-node-
- name: Node ${{ matrix.node-version }}
uses: actions/setup-node@v1
with:
node-version: ${{ matrix.node-version }}
- name: Install dependencies
run: |
npm ci
- name: Build
run: |
npm run build:prod
- name: Linting
run: |
npm run lint
- name: Unit tests
run: |
npm run test:ci
- name: Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npx semantic-release
- name: Copy docs from stream-chat-css
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/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/4.x.x') && 'production' || 'staging' }}
env:
DOCUSAURUS_GH_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}