Skip to content

Merge pull request #2769 from GetStream/chore/backport-poll-docs-to-v5 #945

Merge pull request #2769 from GetStream/chore/backport-poll-docs-to-v5

Merge pull request #2769 from GetStream/chore/backport-poll-docs-to-v5 #945

Workflow file for this run

name: Next Release
on:
push:
branches:
- develop
- v6.0.0
jobs:
publish-next:
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [18.x]
steps:
- uses: actions/checkout@v2
with:
# pulls all commits (needed for semantic release to correctly version)
fetch-depth: '0'
# pulls all tags (needed for semantic release to correctly version)
- run: git fetch --depth=1 origin +refs/tags/*:refs/tags/*
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v2
with:
node-version: ${{ matrix.node-version }}
registry-url: 'https://registry.npmjs.org'
- name: Prepare git
run: |
git config --global user.name 'stream-ci-bot'
git config --global user.email '[email protected]'
- name: Install && Build - SDK and Sample App
uses: ./.github/actions/install-and-build-sdk
- name: Lint
run: yarn lerna-workspaces run lint && (cd docusaurus; npx prettier --check '**/*.mdx')
- name: Test
run: yarn test:coverage
env:
GITHUB_TOKEN: ${{ secrets.DOCUSAURUS_GH_TOKEN }}
- name: Publish Next Release
run: GITHUB_SHORT_SHA="$(git rev-parse --short $GITHUB_SHA)" yarn release-next
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_PUBLISH_TOKEN }}