Feat/ani-label #210
This file contains 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 | |
# Gatilho disparado em toda criação de PR para a main ou para a next | |
on: | |
pull_request: | |
branches: [main, next] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x.x | |
- name: Install | |
run: npm install | |
- name: Bootstrap | |
run: npx lerna bootstrap --hoist | |
- name: Build | |
run: npm run build | |
- name: Lint | |
run: npm run lint | |
- name: Prettier | |
run: npm run prettier:check | |
- name: Test | |
run: npm run test | |
chromatic: | |
runs-on: ubuntu-20.04 | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- uses: actions/setup-node@v1 | |
with: | |
node-version: 16.x.x | |
- name: Install | |
run: npm install | |
- name: Bootstrap | |
run: npx lerna bootstrap --hoist | |
- name: Build | |
run: npm run build | |
- name: Publish Storybook to Chromatic | |
uses: chromaui/action@v1 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
projectToken: ${{ secrets.CHROMATIC_PROJECT_TOKEN }} |