Skip to content

Commit b212ef5

Browse files
author
fspec
committed
fix(ci): add npm platform package templates and GITHUB_TOKEN for prepublish
- Generated npm directory templates using 'napi create-npm-dirs' - Added GITHUB_TOKEN env to prepublish step for GitHub Release creation - Fixes 'File not exists' errors for npm/*/package.json - Fixes 401 authentication error when creating GitHub Release
1 parent c5033c5 commit b212ef5

File tree

13 files changed

+164
-0
lines changed

13 files changed

+164
-0
lines changed

.github/workflows/build-codelet-napi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -211,6 +211,8 @@ jobs:
211211
- name: Generate platform packages
212212
run: npx napi prepublish -t npm
213213
working-directory: codelet/napi
214+
env:
215+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
214216

215217
- name: List packages
216218
run: ls -la npm
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@sengac/codelet-napi-darwin-arm64`
2+
3+
This is the **aarch64-apple-darwin** binary for `@sengac/codelet-napi`
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "@sengac/codelet-napi-darwin-arm64",
3+
"version": "0.1.0",
4+
"cpu": [
5+
"arm64"
6+
],
7+
"main": "codelet-napi.darwin-arm64.node",
8+
"files": [
9+
"codelet-napi.darwin-arm64.node"
10+
],
11+
"description": "NAPI-RS bindings for codelet AI agent",
12+
"license": "MIT",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/sengac/fspec"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
20+
"os": [
21+
"darwin"
22+
]
23+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@sengac/codelet-napi-darwin-x64`
2+
3+
This is the **x86_64-apple-darwin** binary for `@sengac/codelet-napi`
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
{
2+
"name": "@sengac/codelet-napi-darwin-x64",
3+
"version": "0.1.0",
4+
"cpu": [
5+
"x64"
6+
],
7+
"main": "codelet-napi.darwin-x64.node",
8+
"files": [
9+
"codelet-napi.darwin-x64.node"
10+
],
11+
"description": "NAPI-RS bindings for codelet AI agent",
12+
"license": "MIT",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/sengac/fspec"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
20+
"os": [
21+
"darwin"
22+
]
23+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@sengac/codelet-napi-linux-arm64-gnu`
2+
3+
This is the **aarch64-unknown-linux-gnu** binary for `@sengac/codelet-napi`
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "@sengac/codelet-napi-linux-arm64-gnu",
3+
"version": "0.1.0",
4+
"cpu": [
5+
"arm64"
6+
],
7+
"main": "codelet-napi.linux-arm64-gnu.node",
8+
"files": [
9+
"codelet-napi.linux-arm64-gnu.node"
10+
],
11+
"description": "NAPI-RS bindings for codelet AI agent",
12+
"license": "MIT",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/sengac/fspec"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
20+
"os": [
21+
"linux"
22+
],
23+
"libc": [
24+
"glibc"
25+
]
26+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@sengac/codelet-napi-linux-x64-gnu`
2+
3+
This is the **x86_64-unknown-linux-gnu** binary for `@sengac/codelet-napi`
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
{
2+
"name": "@sengac/codelet-napi-linux-x64-gnu",
3+
"version": "0.1.0",
4+
"cpu": [
5+
"x64"
6+
],
7+
"main": "codelet-napi.linux-x64-gnu.node",
8+
"files": [
9+
"codelet-napi.linux-x64-gnu.node"
10+
],
11+
"description": "NAPI-RS bindings for codelet AI agent",
12+
"license": "MIT",
13+
"repository": {
14+
"type": "git",
15+
"url": "https://github.com/sengac/fspec"
16+
},
17+
"publishConfig": {
18+
"access": "public"
19+
},
20+
"os": [
21+
"linux"
22+
],
23+
"libc": [
24+
"glibc"
25+
]
26+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# `@sengac/codelet-napi-win32-arm64-msvc`
2+
3+
This is the **aarch64-pc-windows-msvc** binary for `@sengac/codelet-napi`

0 commit comments

Comments
 (0)