docs: improve contribution guidelines when creating new packages #694
Workflow file for this run
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 | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
main: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version: '18' | |
- run: yarn install --frozen-lockfile | |
- name: 'Check duplicates in yarn.lock' | |
run: yarn run dedupe --list --fail | |
- run: yarn check-dependencies | |
- name: Install Playwright Browsers | |
run: npx playwright install --with-deps | |
- run: yarn nx affected --target=type-check --parallel --max-parallel=3 | |
- run: yarn nx affected --target=build --parallel --max-parallel=3 | |
- run: yarn nx affected --target=build-storybook --parallel --max-parallel=3 | |
- run: yarn nx affected --target=test --parallel --max-parallel=2 | |
- run: yarn nx affected --target=component-test --skipInstall --parallel --max-parallel=2 | |
- run: yarn nx affected --target=lint --parallel --max-parallel=3 | |
- run: yarn nx format:check --base origin/main | |
- name: 'Check for unstaged changes' | |
run: | | |
git status --porcelain | |
git diff-index --quiet HEAD -- || exit 1 | |
docs: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
fetch-depth: 0 | |
- name: Derive appropriate SHAs for base and head for `nx affected` commands | |
uses: nrwl/nx-set-shas@v2 | |
- uses: actions/setup-node@v3 | |
with: | |
cache: 'yarn' | |
node-version: '18' | |
- run: yarn install --frozen-lockfile | |
- run: yarn nx affected --target=build-storybook --parallel --max-parallel=3 |