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
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions .changeset/metal-taxes-shake.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
---
---
4 changes: 3 additions & 1 deletion .changeset/pre.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@
},
"changesets": [
"cuddly-rats-tan",
"metal-taxes-shake",
"neat-apples-bet",
"ready-doodles-throw",
"slick-taxes-jog",
"slow-otters-send",
"tall-cats-guess"
"tall-cats-guess",
"wise-memes-sort"
]
}
5 changes: 5 additions & 0 deletions .changeset/wise-memes-sort.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@kompo/cli": patch
---

Release v0.1.3-beta.5
58 changes: 30 additions & 28 deletions .github/workflows/kompo-release-prepare.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Kompo Release Prepare

# Triggers when a release commit is pushed to staging
# Creates the tag immediately on the pushed commit and prepares the staging->main PR
# Since versioning is done locally, this only generates notes and creates the PR

on:
push:
Expand All @@ -14,56 +14,58 @@ permissions:

jobs:
prepare-release:
# Only run for release commits with specific message AND from the internal repo
if: "contains(github.event.head_commit.message, 'ci: release')"
name: Prepare Release (Tag & PR)
name: Prepare Release (PR)
runs-on: ubuntu-latest
# Run only on explicit release trigger ('ci: release')
if: "contains(github.event.head_commit.message, 'ci: release')"
steps:
- name: Checkout Staging
uses: actions/checkout@v4
with:
# Check out the commit that triggered the workflow
ref: ${{ github.sha }}
fetch-depth: 0

- name: Setup Node.js 24
uses: actions/setup-node@v4
with:
node-version: 24.12.0
registry-url: 'https://registry.npmjs.org'

- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10.28.1+sha512.7d7dbbca9e99447b7c3bf7a73286afaaf6be99251eb9498baefa7d406892f67b879adb3a1d7e687fc4ccc1a388c7175fbaae567a26ab44d1067b54fcb0d6a316

- name: Install Dependencies
run: pnpm install --frozen-lockfile

# No pnpm install needed just for the script unless script deps are missing,
# but let's install minimal if needed or just use node if script is standalone.
# The script uses 'child_process', 'fs', 'path' (standard libs).
# But extracting version requires 'require(...package.json)'.
# Safe to run WITHOUT install if no complex deps in script.
# HOWEVER, extracting version uses package.json which is fine.

- name: Extract Version
id: version
id: extract_version
run: |
# Get Version from package.json
VERSION=$(node -p "require('./packages/cli/package.json').version")

echo "Detected version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
VERSIONS_FILE="packages/cli/package.json"
if [[ -f "$VERSIONS_FILE" ]]; then
VERSION=$(node -p "require('./$VERSIONS_FILE').version")
echo "Detected version: $VERSION"
echo "version=$VERSION" >> $GITHUB_OUTPUT
else
echo "Error: Could not find $VERSIONS_FILE"
exit 1
fi

- name: Generate Release Notes
run: |
node .github/scripts/generate-release-summary.mjs
if [ ! -f RELEASE_SUMMARY.md ]; then
echo "Error: RELEASE_SUMMARY.md failed to generate."
exit 1
echo "Error: RELEASE_SUMMARY.md failed to generate."
touch RELEASE_SUMMARY.md # fallback empty to avoid crash
fi

- name: Create or Update Release PR (staging -> main)
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
VERSION="${{ steps.version.outputs.version }}"
VERSION="${{ steps.extract_version.outputs.version }}"
PR_TITLE="🚀 Release v$VERSION"

# Find existing PR (from Preview)
# Find existing PR (stg -> main)
PR_URL=$(gh pr list --base main --head staging --state open --json url --jq '.[0].url')

if [ -z "$PR_URL" ]; then
Expand All @@ -74,13 +76,13 @@ jobs:
--title "$PR_TITLE" \
--body-file RELEASE_SUMMARY.md
else
echo "Converting Preview PR to Official Release PR: $PR_URL"
echo "Updating existing PR: $PR_URL"
gh pr edit "$PR_URL" \
--title "$PR_TITLE" \
--body-file RELEASE_SUMMARY.md

# Ensure PR is not a draft (promoted from Preview)
gh pr ready "$PR_URL"
# Ensure PR is ready
gh pr ready "$PR_URL" || true
fi

echo "✅ Release v$VERSION is ready for review!"
echo "✅ Release PR v$VERSION ready!"
4 changes: 2 additions & 2 deletions .github/workflows/kompo-release-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ permissions:

jobs:
preview-release:
# Ignore the actual release commit to prevent loop/duplication
if: "!contains(github.event.head_commit.message, 'ci: release')"
# Ignore release trigger and release merge commits
if: "!contains(github.event.head_commit.message, 'ci: release') && !contains(github.event.head_commit.message, 'Release v')"
name: Generate Release Preview
runs-on: ubuntu-latest
steps:
Expand Down
14 changes: 6 additions & 8 deletions .github/workflows/kompo-release-publish.yml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: Kompo Release Publish
run-name: "Publish ${{ github.event.release.tag_name }}"
run-name: "Publish Flow: ${{ github.ref_name }}"

on:
push:
Expand All @@ -12,14 +12,15 @@ permissions:
pull-requests: write

jobs:
publish-release:
name: Merge & Publish to NPM
release-publish:
name: Publish to NPM
# Trigger if commit message implies a release (either manual 'ci: release' merged or 'Release v...')
if: "contains(github.event.head_commit.message, 'ci: release') || contains(github.event.head_commit.message, 'Release v')"
runs-on: ubuntu-latest
steps:
- name: Checkout Staging
- name: Checkout Main
uses: actions/checkout@v4
with:
ref: staging
fetch-depth: 0

- name: Setup Node.js 24
Expand All @@ -44,11 +45,8 @@ jobs:
uses: changesets/action@v1
with:
publish: pnpm release:publish
version: pnpm release:version
commit: "ci: release packages"
title: "ci: release packages"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}


2 changes: 2 additions & 0 deletions packages/blueprints/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @kompo/blueprints

## 0.1.3-beta.6

## 0.1.3-beta.5

## 0.1.3-beta.4
Expand Down
2 changes: 1 addition & 1 deletion packages/blueprints/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kompo/blueprints",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": true,
"description": "Unified Kompo blueprints (Community & Enterprise)",
"type": "module",
Expand Down
8 changes: 8 additions & 0 deletions packages/cli/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
# @kompo/cli

## 0.1.3-beta.6

### Patch Changes

- Release v0.1.3-beta.5
- @kompo/blueprints@0.1.3-beta.6
- @kompo/kit@0.1.3-beta.6

## 0.1.3-beta.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kompo/cli",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": true,
"description": "Kompo CLI - Web3 Component as a Service",
"type": "module",
Expand Down
6 changes: 6 additions & 0 deletions packages/config/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# @kompo/config

## 0.1.3-beta.6

### Patch Changes

- @kompo/kit@0.1.3-beta.6

## 0.1.3-beta.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/config/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kompo/config",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": true,
"type": "module",
"main": "./index.ts",
Expand Down
6 changes: 6 additions & 0 deletions packages/create-kompo-dev/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-kompo-dev

## 0.1.3-beta.6

### Patch Changes

- @kompo-dev/create-kompo@0.1.3-beta.6

## 0.1.3-beta.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-kompo-dev/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-kompo-dev",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": false,
"description": "Create Kompo App",
"repository": {
Expand Down
6 changes: 6 additions & 0 deletions packages/create-kompo/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# create-kompo

## 0.1.3-beta.6

### Patch Changes

- @kompo-dev/create-kompo@0.1.3-beta.6

## 0.1.3-beta.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create-kompo/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "create-kompo",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": false,
"description": "Create Kompo App",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/create/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @kompo-dev/create-kompo

## 0.1.3-beta.6

## 0.1.3-beta.5

### Patch Changes
Expand Down
2 changes: 1 addition & 1 deletion packages/create/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kompo-dev/create-kompo",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": false,
"description": "Kompo - Modern Web3 Framework for TypeScript",
"repository": {
Expand Down
2 changes: 2 additions & 0 deletions packages/kit/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @kompo/kit

## 0.1.3-beta.6

## 0.1.3-beta.5

## 0.1.3-beta.4
Expand Down
2 changes: 1 addition & 1 deletion packages/kit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kompo/kit",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": true,
"description": "Shared interfaces and utilities for Kompo CLI plugins",
"type": "module",
Expand Down
2 changes: 2 additions & 0 deletions packages/studio/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @kompo/studio

## 0.1.3-beta.6

## 0.1.3-beta.5

## 0.1.3-beta.4
Expand Down
2 changes: 1 addition & 1 deletion packages/studio/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@kompo/studio",
"private": true,
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"type": "module",
"scripts": {
"dev:studio": "vite --port 9000",
Expand Down
2 changes: 2 additions & 0 deletions packages/tsconfig/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# @kompo/tsconfig

## 0.1.3-beta.6

## 0.1.3-beta.5

## 0.1.3-beta.4
Expand Down
2 changes: 1 addition & 1 deletion packages/tsconfig/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@kompo/tsconfig",
"version": "0.1.3-beta.5",
"version": "0.1.3-beta.6",
"private": true,
"files": [
"base.json",
Expand Down