Skip to content

Update Yarn to v4 #2945

Update Yarn to v4

Update Yarn to v4 #2945

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
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
# this line is required for the setup-node action to be able to run the npm publish below.
registry-url: 'https://registry.npmjs.org'
- run: corepack enable
- run: yarn install --immutable
- run: yarn clean
- run: yarn build:packages
- run: yarn 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
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: corepack enable
- run: yarn install --immutable
- run: yarn lint
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version-file: .nvmrc
- run: corepack enable
# esbuild requires --ignore-scripts to NOT be added here.
- run: yarn install --immutable
- run: yarn clean
- name: Install playwright browsers
run: yarn dlx playwright install --with-deps
# run yarn and pass through `-- --all` to turborepo
- run: yarn test -- -- --all
- name: Upload coverage to Codecov
uses: codecov/codecov-action@v3
with:
verbose: true