Skip to content

Version and Release #91

Version and Release

Version and Release #91

Workflow file for this run

name: Version and Release
env:
VITE_STREAM_API_KEY: ${{ vars.CLIENT_TEST_API_KEY }}
VITE_STREAM_API_SECRET: ${{ secrets.CLIENT_TEST_SECRET }}
VITE_API_URL: ${{ vars.CLIENT_TEST_API_URL }}
on:
workflow_dispatch:
concurrency:
group: version-and-release-${{ github.ref }}
cancel-in-progress: true
jobs:
version-and-release:
timeout-minutes: 30
runs-on: ubuntu-latest
strategy:
matrix:
node-version: [22.x]
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Setup Node ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'yarn'
- name: Install Dependencies
run: yarn install --immutable
- name: Lint Packages
run: yarn lint:all
- name: Build packages
run: NODE_ENV=production yarn build:libs
- name: Test packages
run: yarn test:ci:libs
- name: Run docs code snippets
run: yarn test:docs-snippets
- name: Release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
git config user.name "GitHub Actions Bot"
git config user.email "<>"
npm config set //registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}
yarn config set npmRegistryServer https://registry.npmjs.org/
yarn config set npmAuthToken ${{ secrets.NPM_TOKEN }}
yarn release