Skip to content

Build dist branch

Build dist branch #112

Workflow file for this run

name: Build dist branch
on:
workflow_run:
workflows: ["Performance benchmarks"]
types: [completed]
branches: [main]
workflow_dispatch:
inputs:
source_ref:
description: 'Source branch to build from'
required: false
default: ''
jobs:
build-dist:
runs-on: ubuntu-latest
if: ${{ github.event_name == 'workflow_dispatch' || github.event.workflow_run.conclusion == 'success' }}
steps:
- uses: runsascoded/npm-dist@v1
with:
source_ref: ${{ inputs.source_ref || github.ref_name }}
node_version: '20'
build_command: pnpm run build
preserve_dirs: dist,lib,src,stackgl_modules,topojson
extra_files: pnpm-lock.yaml
dist_branch: ${{ (inputs.source_ref || github.ref_name) == 'main' && 'dist' || format('{0}-dist', inputs.source_ref || github.ref_name) }}