Merge pull request #1 from noble-assets/fix/custom-chains-and-eslint #12
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
# .github main.yml | |
# Check prettier formatting | |
# Perform ESLint check | |
# Build the project | |
name: CI | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
node-version: [20] | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Install pnpm | |
uses: pnpm/action-setup@v4 | |
- name: Use Node.js ${{ matrix.node-version }} | |
uses: actions/setup-node@v2 | |
with: | |
node-version: ${{ matrix.node-version }} | |
cache: 'pnpm' | |
- name: Setup npmrc | |
run: echo "//npm.pkg.github.com/:_authToken=${{ secrets.GITHUB_TOKEN }}" > .npmrc | |
- name: Install dependencies | |
run: pnpm install | |
- name: Check linting | |
run: pnpm run lint | |
- name: Build packages | |
run: pnpm run build | |
- name: Build React example | |
run: pnpm run build:example | |
- name: Build Next example | |
run: pnpm run build:example-next | |
- name: Check formatting | |
run: pnpm run format |