Merge pull request #6 from hypercerts-org/chore/bump_1_2_0 #26
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 NextJS JS Hypercerts | |
on: | |
# A push occurs to one of the matched branches. | |
push: | |
branches: | |
- main | |
# Or when a pull request event occurs for a pull request against one of the | |
# matched branches. | |
pull_request: | |
branches: | |
- main | |
# Allows you to run this workflow manually from the Actions tab | |
workflow_dispatch: | |
jobs: | |
lint-and-build: | |
# NOTE: This name appears in GitHub's Checks API. | |
name: Lint and build NextJS JS app | |
runs-on: ubuntu-latest | |
defaults: | |
run: | |
working-directory: ./apps/nextjs-hypercerts | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
uses: pnpm/action-setup@v2 | |
with: | |
version: 8.9.0 | |
- name: Set up Node.js 18 | |
uses: actions/setup-node@v3 | |
with: | |
node-version: "18.15.0" | |
cache: "pnpm" | |
cache-dependency-path: ./apps/nextjs-hypercerts/pnpm-lock.yaml | |
- name: Install dependencies | |
run: pnpm install | |
- name: Lint | |
run: pnpm lint | |
- name: Build | |
run: pnpm build |