fix: Retry three times if /me endpoint responds with 401 #2444
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
name: Next.js build | |
on: | |
workflow_dispatch: | |
pull_request: | |
branches: [master] | |
jobs: | |
build-codebase: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Get yarn cache directory path | |
id: yarn-cache-dir-path | |
run: echo "dir=$(yarn config get cacheFolder)" >> $GITHUB_OUTPUT | |
- uses: actions/cache@v4 | |
with: | |
path: | | |
${{ steps.yarn-cache-dir-path.outputs.dir }} | |
**/.next/cache | |
key: ${{ runner.os }}-build-yarn-${{ hashFiles('**/yarn.lock') }} | |
restore-keys: | | |
${{ runner.os }}-build-yarn- | |
- name: Install dependencies | |
run: yarn install --immutable | |
- name: Build frontend | |
run: | | |
cp .env.local.example .env.local | |
yarn build |