Skip to content
Merged
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
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
8 changes: 8 additions & 0 deletions .changeset/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
# Changesets

Hello and welcome! This folder has been automatically generated by `@changesets/cli`, a build tool that works
with multi-package repos, or single-package repos to help you version and publish your code. You can
find the full documentation for it [in our repository](https://github.com/changesets/changesets).

We have a quick list of common questions to get you started engaging with this project in
[our documentation](https://github.com/changesets/changesets/blob/main/docs/common-questions.md).
17 changes: 17 additions & 0 deletions .changeset/config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"$schema": "https://unpkg.com/@changesets/config@3.1.3/schema.json",
"changelog": [
"@changesets/changelog-github",
{
"repo": "aziontech/lib"
}
],
"commit": false,
"fixed": [],
"linked": [],
"access": "restricted",
"baseBranch": "main",
"updateInternalDependencies": "patch",
"ignore": [],
"privatePackages": false
}
5 changes: 5 additions & 0 deletions .changeset/grumpy-llamas-build.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@aziontech/bundler-telemetry': major
---

feat: add pck bundler-telemetry
13 changes: 13 additions & 0 deletions .changeset/violet-boats-grab.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
'@aziontech/unenv-preset': major
'@aziontech/builder': major
'@aziontech/presets': major
'@aziontech/config': major
'@aziontech/types': major
'@aziontech/utils': major
'@aziontech/client': major
'@aziontech/sql': major
'@aziontech/storage': major
---

chore: initial deploy
26 changes: 26 additions & 0 deletions .github/actions/install-dependencies/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: 'Install Dependencies'
description: 'Install dependencies, fetching from cache when possible'
inputs:
node-version:
description: the version of Node.js to install
default: 22.21.1

runs:
using: 'composite'
steps:
- name: Install pnpm
uses: pnpm/action-setup@v5
with:
version: 9.15.9
cache: true

- name: Install Node.js ${{ inputs.node-version }}
uses: actions/setup-node@v6
with:
node-version: ${{ inputs.node-version }}
cache: 'pnpm'
registry-url: 'https://registry.npmjs.org'

- name: Install NPM Dependencies
shell: bash
run: pnpm install --frozen-lockfile
53 changes: 17 additions & 36 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
pull_request:
branches:
- main
- stage

permissions: write-all

Expand All @@ -14,68 +13,50 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5
uses: actions/checkout@v6

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 20
cache: "npm"

- name: Install dependencies
run: npm install
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Run linting
run: npm run lint
run: pnpm lint

- name: Check formatting
run: npm run format:check
run: pnpm format:check

- name: Build
run: npm run compile
run: pnpm compile

test_unit:
name: Unit Tests
needs: lint_and_build
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 20
cache: "npm"
uses: actions/checkout@v6

- name: Install dependencies
run: npm install
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Build
run: npm run compile
run: pnpm compile

- name: Run unit tests
run: npm run test
run: pnpm test

test-e2e:
name: E2E Tests
needs: lint_and_build
needs: [lint_and_build, test_unit]
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v5

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 20
cache: "npm"
uses: actions/checkout@v6

- name: Install dependencies
run: npm install
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Build
run: npm run compile
run: pnpm compile

- name: Run E2E tests
run: npm run test:e2e
run: pnpm test:e2e
25 changes: 11 additions & 14 deletions .github/workflows/code-review.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
name: Azion AI Code Review

on:
pull_request:
types: [opened, synchronize]
branches:
- main
- stage
workflow_dispatch:
# pull_request:
# types: [opened, synchronize]
# branches:
# - main
# - stage

permissions:
contents: read
Expand All @@ -16,22 +17,18 @@ jobs:
ai-code-review:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v5
- name: Install Dependencies
uses: ./.github/actions/install-dependencies
with:
node-version: 20
cache: "npm"

- name: Install
run: npm install
node-version: 24

- name: Build
run: npm run compile
run: pnpm compile

- name: Install Action GitHub
run: |
Expand Down
72 changes: 72 additions & 0 deletions .github/workflows/prereleases.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
name: Publish prereleases

on:
push:
branches: [main, experimental]
pull_request:

jobs:
release:
permissions:
contents: write
pull-requests: write
name: Publish builder package
runs-on: ubuntu-latest

steps:
- name: Checkout Repo
uses: actions/checkout@v6
with:
fetch-depth: 0

- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Setup git for changeset
run: |
# Fetch all remote refs
git fetch origin --tags --force

# Create local main branch pointing to origin/main
# Changeset looks for local "main" branch, not origin/main
git branch -f main origin/main

- name: Detect changed packages
id: changeset
run: |
pnpm exec changeset status --output /tmp/status.json

RELEASE_COUNT=$(jq '.releases | length' /tmp/status.json)
echo "release_count=$RELEASE_COUNT" >> $GITHUB_OUTPUT
echo "Found $RELEASE_COUNT packages to release"

- name: Build changed packages
if: steps.changeset.outputs.release_count != '0'
run: |
# Parse packages from changeset status
PACKAGES=$(jq -r '.releases[].name' /tmp/status.json)

# Build filter arguments for pnpm
FILTER_ARGS=""
for PKG in $PACKAGES; do
FILTER_ARGS="$FILTER_ARGS --filter \"$PKG...\""
done

# Build all packages including their dependencies in correct order
# The "..." syntax includes dependencies of the target packages
eval "pnpm run compile $FILTER_ARGS"

- name: Publish to pkg-pr-new
if: steps.changeset.outputs.release_count != '0'
run: |
# Parse packages and build paths
PACKAGES=$(jq -r '.releases[].name' /tmp/status.json | sed 's/@aziontech\///g')

# Build publish command (removed --compact since packages aren't on npm yet)
CMD="pnpm exec pkg-pr-new publish --pnpm"
for PKG in $PACKAGES; do
CMD="$CMD './packages/$PKG'"
done

echo "Running: $CMD"
eval $CMD
60 changes: 15 additions & 45 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,62 +4,32 @@ on:
push:
branches:
- main
- stage

permissions: write-all
permissions:
id-token: write
contents: read

jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
issues: write
pull-requests: write
id-token: write
steps:
- uses: actions/checkout@v5
- uses: actions/checkout@v6
with:
fetch-depth: 0
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

- name: Setup Node.js
uses: actions/setup-node@v5
with:
node-version: 22
cache: 'npm'
registry-url: 'https://registry.npmjs.org'

- name: Install
run: npm install
- name: Install Dependencies
uses: ./.github/actions/install-dependencies

- name: Build
run: npm run compile
- name: Build Azion package
run: pnpm run compile

- name: Release
run: npx semantic-release
- name: Create Version PR or Publish to NPM
id: changesets
uses: changesets/action@v1
with:
publish: pnpm exec changeset publish
env:
GITHUB_TOKEN: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

sync-stage:
needs: release
if: github.ref == 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v5
with:
fetch-depth: 0
token: ${{ secrets.CUSTOM_GITHUB_TOKEN }}

- name: Set up Git
run: |
git config user.name "GitHub Action"
git config user.email "action@github.com"

- name: Merge main into stage
run: |
git fetch origin
git pull origin main
git checkout stage
git merge main --allow-unrelated-histories --no-edit -Xtheirs -m "Merge branch 'main' into stage [skip ci]"
git push origin stage
NODE_ENV: 'production'
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
Loading
Loading