Update build.yml #5
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: build | |
# Controls when the workflow will run | |
on: | |
push: | |
branches: | |
- main | |
paths: | |
- 'packages/nice-form-react/src/**' | |
- '.github/workflows/build.yml' | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it | |
- uses: actions/checkout@v4 | |
- uses: actions/setup-node@v4 | |
with: | |
node-version: 18.13.0 | |
- uses: pnpm/action-setup@v3 | |
with: | |
version: 8 | |
# Install dependencies | |
- name: Install dependencies | |
run: pnpm i | |
- name: Unit tests | |
run: | | |
cd packages/nice-form-react | |
pnpm test | |
- name: Coveralls | |
uses: coverallsapp/github-action@v2 | |
- name: build | |
run: | | |
cd packages/nice-form-react | |
pnpm build |