Skip to content

Workflow file for this run

name: UI Lint, Tests and Publish

Check failure on line 1 in .github/workflows/ui.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/ui.yml

Invalid workflow file

you may only define one of `paths` and `paths-ignore` for a single event
on:
pull_request:
paths:
- 'packages/ui/**'
paths-ignore:
- 'examples/**'
- 'packages/react/**'
- 'packages/sdk/**'
- 'storybook/**'
jobs:
ui:
runs-on: ubuntu-22.04
defaults:
run:
working-directory: packages/ui/
steps:
- name: Checkout repository
uses: actions/checkout@v4 # TODO: SHA commit instead of version
- name: Setup Node version
uses: actions/setup-node@v4 # TODO: SHA commit instead of version
with:
node-version-file: '.nvmrc' # Root of the repository.
# TODO: NPM login instead of auth token?
- name: Authenticate with private NPM package
run: echo "//registry.npmjs.org/:_authToken=${{ secrets.NPM_TOKEN }}" > ~/.npmrc
- name: Install dependencies
run: npm ci --ignore-scripts
- name: Lint check
run: npm run lint
- name: Tests
run: npm run test
# TODO: NPM publish.