Skip to content

fix: toggle variants in a deterministic way (#89) #331

fix: toggle variants in a deterministic way (#89)

fix: toggle variants in a deterministic way (#89) #331

Workflow file for this run

name: ci
on:
workflow_dispatch:
push:
branches:
- 'main'
- 'beta'
pull_request: {}
concurrency:
group: '${{ github.workflow }} @ ${{ github.event.pull_request.head.label || github.head_ref || github.ref }}'
cancel-in-progress: true
jobs:
test:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: πŸ“– Check out repo
uses: actions/checkout@v3
- name: βš™οΈ Set up Node
uses: actions/setup-node@v3
- name: πŸ”Ž Install dependencies
run: npm ci
- name: πŸ‘€ Lint
run: npm run lint
- name: πŸ§ͺ Test
run: npm run test:coverage
env:
SATISFY_ITERATIONS: 1000
docs:
timeout-minutes: 5
runs-on: ubuntu-latest
steps:
- name: πŸ“– Check out repo
uses: actions/checkout@v3
- name: βš™οΈ Set up Node
uses: actions/setup-node@v3
- name: πŸ”Ž Install dependencies
run: npm ci
- name: Generate README
run: npm run readme:generate
- name: Check README up to date
run: npm run readme:check
- name: πŸ“” Docs
run: npm run docs:build
release:
timeout-minutes: 5
runs-on: ubuntu-latest
needs: [test, docs]
if: ${{ github.ref == 'refs/heads/main' || github.ref == 'refs/heads/beta' }}
steps:
- name: πŸ“– Check out repo
uses: actions/checkout@v3
- name: βš™οΈ Set up Node
uses: actions/setup-node@v3
- name: πŸ”Ž Install dependencies
run: npm ci
- name: πŸ—οΈ Build
run: npm run build
- name: πŸš€ Release
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 16
branches: |
[
'main',
{
name: 'beta',
prerelease: true
}
]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}