Skip to content

feat: add A/B testing support with React hooks #1487

feat: add A/B testing support with React hooks

feat: add A/B testing support with React hooks #1487

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
pull_request:
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: pnpm
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Lint
run: pnpm lint
- name: Unit tests
run: pnpm test:coverage
- name: Send test coverage to codecov
continue-on-error: true
uses: codecov/codecov-action@v4
- name: Build
run: pnpm build
- name: Archive build
uses: actions/upload-artifact@v4
with:
name: lib
path: lib
release:
needs: [build]
if: github.event_name == 'push'
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v6
- name: Install pnpm
uses: pnpm/action-setup@v4
- name: Set up Node.js
uses: actions/setup-node@v6
with:
node-version-file: .nvmrc
cache: pnpm
- name: Download lib from build job
uses: actions/download-artifact@v4
with:
name: lib
path: lib
- name: Install dependencies
run: pnpm install --frozen-lockfile
- name: Semantic Release
uses: cycjimmy/semantic-release-action@v6
with:
extra_plugins: |
@semantic-release/changelog
@semantic-release/git
env:
GIT_AUTHOR_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_AUTHOR_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GIT_COMMITTER_EMAIL: ${{ secrets.GIT_AUTHOR_EMAIL }}
GIT_COMMITTER_NAME: ${{ secrets.GIT_AUTHOR_NAME }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}