mirror of
https://github.com/CopilotKit/CopilotKit.git
synced 2026-09-14 16:26:20 +08:00
b854810d71
Parallel CI workflows were each getting a different Nx Cloud execution ID, resulting in separate CIPEs instead of one unified view. Set a stable NX_CI_EXECUTION_ID env var using head_ref + sha + run_attempt so all workflows for the same push are grouped together. Also add NX_CI_EXECUTION_ENV per workflow to create labeled tab sections in the Nx Cloud CIPE page.
35 lines
850 B
YAML
35 lines
850 B
YAML
name: 🚀 pkg-pr-new
|
|
on: [push, pull_request]
|
|
|
|
concurrency:
|
|
group: ${{ github.repository }}-${{ github.workflow }}-${{ github.ref }}
|
|
cancel-in-progress: true
|
|
|
|
env:
|
|
NX_CI_EXECUTION_ID: ${{ github.head_ref }}-${{ github.sha }}-${{ github.run_attempt }}
|
|
NX_CI_EXECUTION_ENV: "Publish Commit"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout code
|
|
uses: actions/checkout@v2
|
|
|
|
- name: Install pnpm
|
|
uses: pnpm/action-setup@v4
|
|
|
|
- run: corepack enable
|
|
- uses: actions/setup-node@v4
|
|
with:
|
|
node-version-file: "package.json"
|
|
|
|
- name: Install dependencies
|
|
run: pnpm install
|
|
|
|
- name: Build
|
|
run: pnpm run build
|
|
|
|
- run: npx pkg-pr-new publish --pnpm --packageManager pnpm "./packages/v1/*" "./packages/v2/*"
|