Skip to content

chore: bugbot

chore: bugbot #6076

name: "Build and Publish ALPHA"
on:
issue_comment:
types: [created]
pull_request:
types: [opened, synchronize]
jobs:
# Detect which projects have changed
detect-changes:
uses: ./.github/workflows/_check-workspaces-changes.yaml
publish-alpha:
name: "[⚛️ REACT] Build and Publish ALPHA"
needs: detect-changes
if: |
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.body == 'build') ||
(github.event_name == 'pull_request' &&
needs.detect-changes.outputs.package_react == 'true')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/setup-node-pnpm
name: Setup Node and pnpm
- name: Build
run: |
pnpm --filter @factorialco/f0-core build
pnpm --filter @factorialco/f0-react build
- name: Publish to release branch npm/alpha-pr-${{ github.event.pull_request.number }}
uses: ./.github/actions/publish-release-branch
with:
branch-name: npm/alpha-pr-${{ github.event.pull_request.number }}
directory: packages/react
publish-alpha-react-native:
name: "[📱 REACT NATIVE] Build and Publish ALPHA"
needs: detect-changes
if: |
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.body == 'build') ||
(github.event_name == 'pull_request' &&
needs.detect-changes.outputs.package_react_native == 'true')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/setup-node-pnpm
name: Setup Node and pnpm
- name: Build
run: |
pnpm --filter @factorialco/f0-react-core build
pnpm --filter @factorialco/f0-react-native build
- name: Publish to release branch npm/alpha-pr-${{ github.event.pull_request.number }}-react-native
uses: ./.github/actions/publish-release-branch
with:
branch-name: npm/alpha-pr-${{ github.event.pull_request.number }}-react-native
directory: packages/react-native
publish-alpha-core:
name: "[🎯 CORE] Build and Publish ALPHA"
needs: detect-changes
if: |
(github.event_name == 'issue_comment' &&
github.event.issue.pull_request &&
github.event.comment.body == 'build') ||
(github.event_name == 'pull_request' &&
needs.detect-changes.outputs.package_core == 'true')
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.pull_request.head.ref }}
token: ${{ secrets.GITHUB_TOKEN }}
- uses: ./.github/actions/setup-node-pnpm
name: Setup Node and pnpm
- name: Build
run: |
pnpm --filter @factorialco/f0-react-core build
- name: Publish to release branch npm/alpha-pr-${{ github.event.pull_request.number }}-core
uses: ./.github/actions/publish-release-branch
with:
branch-name: npm/alpha-pr-${{ github.event.pull_request.number }}-core
directory: packages/core