Skip to content

Test base PR for #2863 (9a20b5d3c0bfa261112eb08a1d9f8541075312a4) #4007

Test base PR for #2863 (9a20b5d3c0bfa261112eb08a1d9f8541075312a4)

Test base PR for #2863 (9a20b5d3c0bfa261112eb08a1d9f8541075312a4) #4007

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main, '[0-9]+-[0-9]+-*']
workflow_run:
workflows: ['Dependabot']
types:
- completed
workflow_dispatch:
workflow_call:
inputs:
ref:
description: 'Checkout a different git ref instead of the SHA from the GitHub event.'
required: false
type: string
jobs:
build:
name: Build
if: ${{ !startsWith(github.head_ref, 'workflows/tests/') }}
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/create-github-app-token@v1
id: get-github-app-token
with:
app-id: ${{ secrets.CHECK_GIT_STATUS_BOT_APP_ID }}
private-key: ${{ secrets.CHECK_GIT_STATUS_BOT_APP_PRIVATE_KEY }}
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ inputs.ref || github.head_ref }}
token: ${{ steps.get-github-app-token.outputs.token }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
check-latest: true
cache: yarn
- name: Install dependencies
run: yarn
- name: Lint
run: yarn lint --fix
- name: Build
run: yarn build
- name: Package
run: yarn package
- uses: CatChen/check-git-status-action@v1
id: check-git-status
with:
fail-if-not-clean: ${{ github.actor != 'dependabot[bot]' || github.actor_id != 49699333 }}
push-if-not-clean: true
request-changes-if-not-clean: false
push-token: ${{ steps.get-github-app-token.outputs.token }}