Added username length validation to auth/register route #954
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' | |
on: | |
push: | |
branches: [ trunk ] | |
pull_request: | |
branches: [ trunk ] | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-node@v3 | |
with: | |
node-version: '18.x' | |
- name: 'Restore dependency cache' | |
id: cache-restore | |
uses: actions/cache@v3 | |
with: | |
path: | | |
node_modules | |
${{ github.workspace }}/.next/cache | |
key: ${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}-${{ hashFiles('**.[jt]s', '**.[jt]sx') }} | |
restore-keys: | | |
${{ runner.os }}-node${{ matrix.node }}-${{ hashFiles('**/yarn.lock') }}- | |
- name: Install dependencies | |
if: steps.cache-restore.outputs.cache-hit != 'true' | |
run: yarn install | |
- name: Build | |
run: yarn build | |
env: | |
ZIPLINE_DOCKER_BUILD: true |