fix: trust @ast-grep/napi in CI to enable native module install scripts
This commit is contained in:
24
.github/workflows/publish.yml
vendored
24
.github/workflows/publish.yml
vendored
@@ -49,9 +49,31 @@ jobs:
|
|||||||
|
|
||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: bun install
|
run: bun install
|
||||||
|
env:
|
||||||
|
BUN_INSTALL_ALLOW_SCRIPTS: "@ast-grep/napi"
|
||||||
|
|
||||||
|
- name: Debug environment
|
||||||
|
run: |
|
||||||
|
echo "=== Bun version ==="
|
||||||
|
bun --version
|
||||||
|
echo "=== Node version ==="
|
||||||
|
node --version
|
||||||
|
echo "=== Current directory ==="
|
||||||
|
pwd
|
||||||
|
echo "=== List src/ ==="
|
||||||
|
ls -la src/
|
||||||
|
echo "=== package.json scripts ==="
|
||||||
|
cat package.json | jq '.scripts'
|
||||||
|
|
||||||
- name: Build
|
- name: Build
|
||||||
run: bun run build
|
run: |
|
||||||
|
echo "=== Running bun build ==="
|
||||||
|
bun build src/index.ts --outdir dist --target bun --format esm --external @ast-grep/napi
|
||||||
|
echo "=== bun build exit code: $? ==="
|
||||||
|
echo "=== Running tsc ==="
|
||||||
|
tsc --emitDeclarationOnly
|
||||||
|
echo "=== Running build:schema ==="
|
||||||
|
bun run build:schema
|
||||||
|
|
||||||
- name: Verify build output
|
- name: Verify build output
|
||||||
run: |
|
run: |
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "oh-my-opencode",
|
"name": "oh-my-opencode",
|
||||||
"version": "0.1.5",
|
"version": "0.1.6",
|
||||||
"description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
|
"description": "OpenCode plugin - custom agents (oracle, librarian) and enhanced features",
|
||||||
"main": "dist/index.js",
|
"main": "dist/index.js",
|
||||||
"types": "dist/index.d.ts",
|
"types": "dist/index.d.ts",
|
||||||
@@ -57,6 +57,7 @@
|
|||||||
"bun": ">=1.0.0"
|
"bun": ">=1.0.0"
|
||||||
},
|
},
|
||||||
"trustedDependencies": [
|
"trustedDependencies": [
|
||||||
"@ast-grep/cli"
|
"@ast-grep/cli",
|
||||||
|
"@ast-grep/napi"
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user