d18ada4ee7
Docker Publish / docker (web, apps/web/Dockerfile, web) (push) Failing after 0s
Docker Publish / docker (api, apps/api/Dockerfile, api) (push) Failing after 1s
Publish Extension / detect-version (push) Has been skipped
Publish Extension / submit (push) Has been cancelled
48 lines
1.1 KiB
YAML
48 lines
1.1 KiB
YAML
name: Build Extension
|
|
|
|
on:
|
|
workflow_call:
|
|
inputs:
|
|
upload_artifacts:
|
|
required: false
|
|
type: boolean
|
|
default: false
|
|
description: 'Whether to upload build artifacts'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- name: Check out Git repository
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
with:
|
|
version: 11.1.2
|
|
|
|
- name: Install Node.js
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 22
|
|
cache: 'pnpm'
|
|
cache-dependency-path: pnpm-lock.yaml
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install --filter ./apps/extension...
|
|
|
|
- name: Build extension
|
|
run: pnpm --filter ./apps/extension build
|
|
|
|
- name: Build extension zip
|
|
run: pnpm --filter ./apps/extension zip
|
|
|
|
- name: Upload extension artifacts
|
|
if: inputs.upload_artifacts == true
|
|
uses: actions/upload-artifact@v4
|
|
with:
|
|
name: dist-extension
|
|
path: apps/extension/.output/*.zip
|
|
retention-days: 1
|
|
if-no-files-found: error
|