Skip to content

Commit

Permalink
do not use a dist folder at all
Browse files Browse the repository at this point in the history
  • Loading branch information
arvid220u committed Feb 17, 2024
1 parent ee96de3 commit 02c6b78
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 5 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ jobs:
uses: actions/upload-artifact@v3
with:
name: OS specific binaries
path: tiktoken-node/dist
path: tiktoken-node/tiktoken-node.*.node
if-no-files-found: error

publish:
Expand Down Expand Up @@ -107,7 +107,10 @@ jobs:
uses: actions/download-artifact@v3
with:
name: OS specific binaries
path: tiktoken-node/dist/
path: dist/

- name: Copy .node file
run: cp dist/tiktoken-node.*.node tiktoken-node

- name: Publish to npm
uses: JS-DevTools/npm-publish@v1
Expand Down
8 changes: 5 additions & 3 deletions tiktoken-node/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,18 @@
},
"wireit": {
"build": {
"command": "napi build --platform --release ./dist",
"command": "napi build --platform --release",
"files": [
"src/**",
"Cargo.toml",
"Cargo.lock",
"build.rs"
],
"output": [
"dist/tiktoken-node.*.node"
"tiktoken-node.*.node",
"index.js",
"index.d.ts"
]
}
}
}
}

0 comments on commit 02c6b78

Please sign in to comment.