File tree Expand file tree Collapse file tree 1 file changed +19
-0
lines changed
Expand file tree Collapse file tree 1 file changed +19
-0
lines changed Original file line number Diff line number Diff line change @@ -114,6 +114,25 @@ jobs:
114114 run : |
115115 cd native
116116 pnpm napi create-npm-dirs
117+ # List created dirs
118+ ls -la npm/
119+
120+ - name : Copy binaries to npm packages
121+ run : |
122+ cd native
123+ # Copy each .node file to its corresponding npm package directory
124+ for node_file in *.node; do
125+ # Extract platform from filename (e.g., graphql-lint.darwin-arm64.node -> darwin-arm64)
126+ platform=$(echo "$node_file" | sed 's/graphql-lint\.//' | sed 's/\.node//')
127+ target_dir="npm/$platform"
128+ if [ -d "$target_dir" ]; then
129+ cp "$node_file" "$target_dir/"
130+ echo "Copied $node_file to $target_dir/"
131+ ls -la "$target_dir/"
132+ else
133+ echo "Warning: $target_dir not found for $node_file"
134+ fi
135+ done
117136
118137 - name : Add repository to platform packages
119138 run : |
You can’t perform that action at this time.
0 commit comments