move the auto config to .autorc from individual package.json files #142
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: [push] | |
jobs: | |
build: | |
name: build & test | |
runs-on: macos-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Read .nvmrc | |
run: echo "##[set-output name=NVMRC;]$(cat .nvmrc)" | |
id: nvm | |
- name: Use Node.js (.nvmrc) | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "${{ steps.nvm.outputs.NVMRC }}" | |
- name: Install yarn | |
run: npm install -g yarn | |
- name: Install root dependencies (yarn install) | |
run: yarn install | |
- name: Install dependencies and link packages (lerna bootstrap) | |
run: yarn run lerna bootstrap | |
- name: Run tests (lerna run test) | |
run: yarn run lerna run test |