Add: Show owner #168
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: "[frontend] Lint, Typecheck" | |
on: | |
push: | |
paths: | |
- "frontend/**" | |
- ".github/workflows/frontend-*.yml" | |
- "Rakefile" | |
- "config.test.yml" | |
branches: | |
- main | |
pull_request: | |
paths: | |
- "frontend/**" | |
- ".github/workflows/frontend-*.yml" | |
- "Rakefile" | |
- "config.test.yml" | |
workflow_dispatch: | |
jobs: | |
check: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Setup ruby | |
uses: ruby/setup-ruby@v1 | |
- name: Setup .env | |
run: | | |
cp ./config.test.yml ./config.yml | |
rake configure | |
- name: Setup pnpm | |
run: corepack enable | |
- name: Setup node | |
uses: actions/setup-node@v4 | |
with: | |
node-version-file: .node-version | |
cache: "pnpm" | |
cache-dependency-path: frontend/pnpm-lock.yaml | |
- name: Run frontend lint | |
working-directory: ./frontend | |
run: | | |
pnpm i | |
pnpm check | |
- name: Run frontend typecheck | |
working-directory: ./frontend | |
run: | | |
pnpm typecheck | |
build: | |
runs-on: ubuntu-latest | |
needs: | |
- check | |
permissions: | |
packages: write | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v3 | |
- name: Setup pnpm | |
run: corepack enable | |
- name: Setup node | |
uses: actions/setup-node@v3 | |
with: | |
node-version-file: .node-version | |
cache: "pnpm" | |
cache-dependency-path: frontend/pnpm-lock.yaml | |
- name: Build production | |
working-directory: ./frontend | |
run: | | |
pnpm i | |
pnpm build | |
env: | |
SENTRY_ORG: ${{ secrets.SENTRY_ORG }} | |
SENTRY_PROJECT_FRONTEND: ${{ secrets.SENTRY_PROJECT_FRONTEND }} | |
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }} | |
- name: Build image | |
if: github.ref_name == 'main' | |
uses: ./.github/actions/build | |
with: | |
directory-name: frontend |