Skip to content

chore: release main #3498

chore: release main

chore: release main #3498

Workflow file for this run

name: CI
on: [push, pull_request]
# To use Turborepo Remote Caching, set the following environment variables.
env:
TURBO_TOKEN: ${{ secrets.TURBO_TOKEN }}
TURBO_TEAM: ${{ secrets.TURBO_TEAM }}
jobs:
build:
runs-on: ubuntu-latest
timeout-minutes: 15
steps:
- uses: actions/checkout@v4
- name: read node version from the .nvmrc file
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
shell: bash
id: nvmrc
- uses: actions/setup-node@v4
with:
node-version: ${{steps.nvmrc.outputs.NODE_VERSION}}
# this line is required for the setup-node action to be able to run the npm publish below.
registry-url: 'https://registry.npmjs.org'
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn clean
- run: yarn build:packages
- run: npm run publish-release -- canary
if: ${{ github.ref == 'refs/heads/main' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: read node version from the .nvmrc file
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
shell: bash
id: nvmrc
- uses: actions/setup-node@v4
with:
node-version: ${{steps.nvmrc.outputs.NODE_VERSION}}
cache: yarn
- run: yarn install --frozen-lockfile
- run: yarn lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: 20
cache: yarn
# esbuild requires --ignore-scripts to NOT be added here.
- run: yarn install --frozen-lockfile
- run: yarn clean
- name: Install playwright browsers
run: npx playwright install --with-deps
# run yarn and pass through `-- --all` to turborepo
- run: yarn test -- -- --all
- name: Upload coverage to Codecov
uses: codecov/[email protected]
with:
verbose: true