Compare commits

...
9 Commits
Author SHA1 Message Date
yiling b0dbb56493 Release v0.0.3 2026-06-12 20:42:52 +08:00
Yiling-J f6a0577585 Merge pull request #99 from shumaiOne/fix/npm-binary-lookup
fix(cli): resolve platform binary path resolution under nested node_modules
2026-06-12 20:36:11 +08:00
yiling 1fee0f5a97 fix(cli): resolve platform binary path resolution under nested node_modules 2026-06-12 20:34:07 +08:00
Yiling-J b5c0eca2fe Merge pull request #98 from shumaiOne/fix/npm-publish-provenance
fix(npm): add repository metadata to package.json for provenance verification
2026-06-12 18:49:48 +08:00
yiling 12d8681cd1 fix(npm): add repository metadata for provenance validation 2026-06-12 18:47:28 +08:00
yiling d472be460a Release v0.0.2 2026-06-12 18:38:57 +08:00
Yiling-J bf7e5185d9 Merge pull request #97 from shumaiOne/feat/release-npm-ci
ci: add release-npm.yaml workflow
2026-06-12 16:37:05 +08:00
yiling 008d913220 ci: use npm Trusted Publisher OIDC for authentication 2026-06-12 16:29:43 +08:00
yiling ed02ea1317 ci: add release-npm.yaml workflow 2026-06-12 16:27:46 +08:00
14 changed files with 107 additions and 13 deletions
+88
View File
@@ -0,0 +1,88 @@
name: Build, Release & Publish to NPM
on:
push:
tags:
- 'v*'
workflow_dispatch:
inputs:
tag:
description: 'Tag to build (e.g., v0.12.0)'
required: true
type: string
source_ref:
description: 'Source ref to build/publish (defaults to tag)'
required: false
type: string
permissions: {}
jobs:
release:
name: Build, Release and Publish
runs-on: ubuntu-latest
permissions:
contents: write
id-token: write
env:
RELEASE_TAG: ${{ github.event.inputs.tag || github.ref_name }}
SOURCE_REF: ${{ github.event.inputs.source_ref || github.event.inputs.tag || github.ref_name }}
steps:
- name: Checkout
uses: actions/checkout@v4
with:
ref: ${{ env.SOURCE_REF }}
- name: Setup Bun
uses: oven-sh/setup-bun@v2
with:
bun-version: latest
- name: Setup Node.js
uses: actions/setup-node@v6
with:
node-version: '24'
registry-url: 'https://registry.npmjs.org'
package-manager-cache: false
- name: Install system dependencies
run: |
sudo apt-get update
sudo apt-get install -y ripgrep bubblewrap socat libcairo2-dev libpango1.0-dev libjpeg-dev libgif-dev librsvg2-dev fd-find
- name: Install dependencies
run: bun install
- name: Lint
run: bun run lint
- name: Typecheck
run: bun run typecheck
- name: Test
run: bun run test
- name: Build NPM packages
run: bun run build-npm
- name: Create GitHub Release
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
if gh release view "${{ env.RELEASE_TAG }}" >/dev/null 2>&1; then
gh release edit "${{ env.RELEASE_TAG }}" \
--title "${{ env.RELEASE_TAG }}" \
--generate-notes
else
gh release create "${{ env.RELEASE_TAG }}" \
--title "${{ env.RELEASE_TAG }}" \
--generate-notes
fi
- name: Upgrade npm for trusted publishing
run: |
npm install -g npm@11.16.0 --ignore-scripts
npm --version
- name: Publish to NPM
run: bun run scripts/publish.ts
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/agent-app",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"bin": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/transcode-app",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"bin": {
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/web-app",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"dependencies": {
+5 -1
View File
@@ -1,8 +1,12 @@
{
"name": "shumai",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"repository": {
"type": "git",
"url": "git+https://github.com/shumaiOne/shumai.git"
},
"workspaces": [
"packages/*",
"apps/*"
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/agent",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/api",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/core",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/db",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/dtos",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/transcode",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./src/index.ts",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/webui",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./index.html",
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@shumai/workflow-core",
"version": "0.0.1",
"version": "0.0.3",
"private": true,
"type": "module",
"main": "./src/index.ts",
+3 -1
View File
@@ -161,6 +161,7 @@ async function buildPlatformPackages(
description: `${target.platform} ${target.arch} binary for ${appName}`,
os: [target.platform],
cpu: [target.arch],
repository: rootPackageJson.repository,
}
await writeFile(
@@ -222,7 +223,7 @@ if (platform === 'darwin' && arch === 'arm64') {
const pathsToTry = [
join(__dirname, '..', '..', '..', pkgName, 'bin', binaryName), // Flat node_modules
join(__dirname, '..', '..', 'node_modules', pkgName, 'bin', binaryName), // Nested node_modules
join(__dirname, '..', 'node_modules', pkgName, 'bin', binaryName), // Nested node_modules
]
let binaryPath = ''
@@ -289,6 +290,7 @@ child.on('error', (err) => {
files: ['bin', ...(hasPrisma ? ['prisma'] : [])],
dependencies,
optionalDependencies,
repository: rootPackageJson.repository,
}
await writeFile(