Small fixes #120
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
# run as a check on every pull request | |
name: test next.js build | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: | |
- main | |
jobs: | |
build: | |
defaults: | |
run: | |
working-directory: ./client | |
runs-on: ubuntu-latest | |
steps: | |
# prepare codebase | |
- uses: actions/[email protected] | |
# install libraries | |
- uses: pnpm/[email protected] | |
with: | |
version: latest | |
- uses: actions/[email protected] | |
with: | |
cache: 'pnpm' | |
- name: authenticate tiptap | |
env: | |
TIPTAP_KEY: ${{ secrets.TIPTAP_KEY }} | |
run: | | |
npm config set "@tiptap-pro:registry" https://registry.tiptap.dev/ | |
npm config set "//registry.tiptap.dev/:_authToken" $TIPTAP_KEY | |
- run: pnpm install | |
# tests | |
- name: check types | |
run: | | |
pnpm tsc --noEmit | |
- name: next build | |
if: github.event.pull_request.draft == false | |
run: | | |
pnpm build |