Skip to content

App settings

App settings #11

Workflow file for this run

name: PR Build Check
on:
pull_request:
branches: [main]
paths-ignore:
- '**.md'
- '**.spec.js'
- '.idea'
- '.vscode'
- '.dockerignore'
- 'Dockerfile'
- '.gitignore'
- '.github/**'
- '!.github/workflows/pr-build.yml'
workflow_dispatch:
inputs:
pr_number:
description: 'Pull Request Number'
required: true
jobs:
build:
name: Build Check
runs-on: ${{ matrix.os }}
strategy:
matrix:
os: [macos-latest, ubuntu-latest, windows-latest]
steps:
- name: Checkout Code
uses: actions/checkout@v3
with:
ref: ${{ github.event.pull_request.head.sha || github.ref }}
- name: Checkout PR Branch
if: github.event_name == 'workflow_dispatch'
run: |
gh pr checkout ${{ github.event.inputs.pr_number }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Setup Node.js
uses: actions/setup-node@v3
with:
node-version: 18
- name: Install Dependencies
run: npm install
- name: Build Release Files
run: npm run build
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Artifact
uses: actions/upload-artifact@v4
with:
name: pr_build_on_${{ matrix.os }}
path: release/
retention-days: 3