Skip to content

Fixed test workflow pull request number #3817

Fixed test workflow pull request number

Fixed test workflow pull request number #3817

Workflow file for this run

name: Build
on:
push:
branches: [main]
pull_request:
branches: [main, '[0-9]+-[0-9]+-*']
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
runs-on: ubuntu-latest
permissions:
pull-requests: write
contents: write
steps:
- uses: actions/checkout@v4
with:
repository: ${{ github.event.pull_request.head.repo.full_name || github.repository }}
ref: ${{ inputs.ref || github.head_ref }}
- uses: actions/setup-node@v4
with:
node-version-file: '.nvmrc'
check-latest: true
- name: Install dependencies
run: yarn
- 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
push-token: ${{ secrets.CHECK_GIT_STATUS_ACTION_TOKEN }}
request-changes-token: ${{ secrets.GITHUB_TOKEN }}