Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .commitlintrc.cjs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module.exports = {
extends: ['@commitlint/config-conventional', '@commitlint/config-pnpm-scopes'],
extends: ['@commitlint/config-conventional'],
rules: {
// Require scope to be present
'scope-empty': [2, 'never'],
Expand Down
14 changes: 10 additions & 4 deletions .github/scripts/test-registry/test-registry.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { execFileSync } from 'node:child_process';
import { cpSync, mkdtempSync, readFileSync, rmSync } from 'node:fs';
import { copyFileSync, cpSync, existsSync, mkdtempSync, readFileSync, rmSync } from 'node:fs';
import { tmpdir } from 'node:os';
import { join } from 'node:path';

Expand All @@ -19,22 +19,28 @@ function testComponent(component: string, baseAppPath: string): TestResult {
filter: (src) => !src.includes('node_modules'),
});

// Copy .npmrc so bun can resolve scoped registries (e.g. @uipath)
const npmrcPath = process.env.NPM_CONFIG_USERCONFIG;
if (npmrcPath && existsSync(npmrcPath)) {
copyFileSync(npmrcPath, join(testDir, '.npmrc'));
}

// Install dependencies in the temp directory
execFileSync('pnpm', ['install'], {
execFileSync('bun', ['install'], {
encoding: 'utf-8',
stdio: ['pipe', 'pipe', 'pipe'],
cwd: testDir,
});

// Install the component from registry
const addOutput = execFileSync('pnpm', ['exec', 'shadcn', 'add', `@uipath/${component}`], {
const addOutput = execFileSync('bunx', ['shadcn', 'add', `@uipath/${component}`], {
encoding: 'utf-8',
stdio: ['pipe', 'pipe', 'pipe'],
cwd: testDir,
});

// Run build to verify all imports resolve correctly
const buildOutput = execFileSync('pnpm', ['run', 'build'], {
const buildOutput = execFileSync('bun', ['run', 'build'], {
encoding: 'utf-8',
stdio: ['pipe', 'pipe', 'pipe'],
cwd: testDir,
Expand Down
11 changes: 5 additions & 6 deletions .github/workflows/apollo-vertex-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,20 +22,19 @@
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Apollo Vertex Lint' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22"
cache: "pnpm"

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Lint
run: pnpm --filter apollo-vertex lint
run: bun run --filter apollo-vertex lint

- name: Format check
run: pnpm --filter apollo-vertex format:check
run: bun run --filter apollo-vertex format:check
22 changes: 11 additions & 11 deletions .github/workflows/apollo-vertex-registry-check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,24 +25,23 @@
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Apollo Vertex Registry Check' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: "22"
registry-url: "https://npm.pkg.github.com"
scope: "@uipath"
cache: "pnpm"

- name: Install dependencies
env:
NODE_AUTH_TOKEN: ${{ secrets.GH_NPM_REGISTRY_TOKEN }}
run: pnpm install
run: bun install

- name: Build registry
run: pnpm --filter apollo-vertex registry:build
run: bun run --filter apollo-vertex registry:build

- name: Generate matrix batches
id: matrix
Expand All @@ -63,13 +62,13 @@
echo "result=${MATRIX}" >> "${GITHUB_OUTPUT}"

- name: Create base shadcn app
run: cd ${{ runner.temp }} && pnpx shadcn@latest init --preset a0 --template next --name minimal-app
run: cd ${{ runner.temp }} && bunx shadcn@latest init --preset a0 --template next --name minimal-app

- name: Configure @uipath registry
working-directory: ${{ runner.temp }}/minimal-app
env:
REGISTRY_URL: http://localhost:3000
run: pnpx tsx ${{ github.workspace }}/.github/scripts/test-registry/configure-registry.ts
run: bunx tsx ${{ github.workspace }}/.github/scripts/test-registry/configure-registry.ts

- name: Copy locales into base app
run: cp -r apps/apollo-vertex/locales ${{ runner.temp }}/minimal-app/locales
Expand Down Expand Up @@ -106,10 +105,11 @@
sparse-checkout: |
.github/scripts/test-registry
package.json
pnpm-lock.yaml
bun.lock
.npmrc

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Apollo Vertex Registry Check' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
Expand Down Expand Up @@ -138,7 +138,7 @@
NODE_AUTH_TOKEN: ${{ secrets.GH_NPM_REGISTRY_TOKEN }}
COMPONENTS: ${{ matrix.components }}
BASE_APP_PATH: ${{ runner.temp }}/base-app
run: pnpx tsx ${{ github.workspace }}/.github/scripts/test-registry/test-registry.ts
run: bunx tsx ${{ github.workspace }}/.github/scripts/test-registry/test-registry.ts

registry-check:
name: Apollo Vertex Registry Check
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/commit-lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,17 +17,16 @@
fetch-depth: 0
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Commit Lint' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Validate commit messages
if: github.event_name == 'pull_request'
Expand Down
7 changes: 3 additions & 4 deletions .github/workflows/dependency-review.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,17 +20,16 @@
with:
persist-credentials: false

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Dependency Review' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Check licenses
id: check
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/dev-cleanup.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,17 +27,16 @@
with:
ref: main

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Dev Cleanup' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Get published packages from PR comment
id: packages
Expand Down Expand Up @@ -84,7 +83,7 @@
version="${pkg_version##*@}"

echo "Cleaning up $pkg_name@$version..."
if pnpm unpublish:dev "$pkg_name" "$version"; then
if bun run unpublish:dev "$pkg_name" "$version"; then
echo " ✓ Cleaned up"
else
echo " ✗ Could not clean up"
Expand Down
31 changes: 14 additions & 17 deletions .github/workflows/dev-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -147,17 +147,16 @@
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Dev Publish' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Cleanup previous version
env:
Expand All @@ -172,7 +171,7 @@
version="${PACKAGE_VERSION##*@}"

echo "Cleaning up: $PACKAGE_VERSION"
pnpm unpublish:dev "$pkg_name" "$version"
bun run unpublish:dev "$pkg_name" "$version"

update-comment-publishing:
name: Update Comment - Publishing
Expand All @@ -187,17 +186,16 @@
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Dev Publish' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Create initial PR comment
env:
Expand All @@ -207,7 +205,7 @@
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
SHORT_SHA="${SHORT_SHA:0:7}"
pnpm exec tsx scripts/create-dev-comment.ts
bunx tsx scripts/create-dev-comment.ts

publish:
name: Publish ${{ matrix.package }}
Expand All @@ -226,22 +224,21 @@
- name: Checkout code
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Dev Publish' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Build package
env:
PACKAGE: ${{ matrix.package }}
run: pnpm build --filter="$PACKAGE"
run: bun run build --filter="$PACKAGE"

- name: Publish package
id: publish
Expand Down Expand Up @@ -271,7 +268,7 @@
exit 1
fi

if pnpm publish:dev "$PACKAGE" "$SUFFIX"; then
if bun run publish:dev "$PACKAGE" "$SUFFIX"; then
echo "full_version=$PACKAGE@$version-$SUFFIX" >> $GITHUB_OUTPUT
echo "status=success" >> $GITHUB_OUTPUT
else
Expand All @@ -287,7 +284,7 @@
FULL_VERSION: ${{ steps.publish.outputs.full_version }}
PUBLISH_STATUS: ${{ steps.publish.outputs.status }}
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: pnpm exec tsx scripts/update-dev-comment-row.ts
run: bunx tsx scripts/update-dev-comment-row.ts

update-comment-cleanup:
name: Update Comment - Cleanup Only
Expand Down
9 changes: 4 additions & 5 deletions .github/workflows/notify-vertex-updates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,21 +19,20 @@
with:
fetch-depth: 0

- name: Setup pnpm
uses: pnpm/action-setup@fc06bc1257f339d1d5d8b3a19a8cae5388b55320 # v4
- name: Setup Bun
uses: oven-sh/setup-bun@v2

Check failure

Code scanning / zizmor

unpinned action reference Error

unpinned action reference

Check warning

Code scanning / CodeQL

Unpinned tag for a non-immutable Action in workflow Medium

Unpinned 3rd party Action 'Notify Vertex Component Updates' step
Uses Step
uses 'oven-sh/setup-bun' with ref 'v2', not a pinned commit hash

- name: Setup Node.js
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4
with:
node-version: 22
cache: 'pnpm'

- name: Install dependencies
run: pnpm install --frozen-lockfile
run: bun install --frozen-lockfile

- name: Notify changed components
env:
BEFORE_SHA: ${{ github.event.before }}
AFTER_SHA: ${{ github.event.after }}
API_KEY: ${{ secrets.VERTEX_TRACKER_API_KEY }}
run: pnpm notifyUpdates
run: bun run notifyUpdates
Loading
Loading