Skip to content

Commit 94dcdae

Browse files
rquastfspec
authored andcommitted
fix(ci): create npm directories before napi artifacts
NAPI-RS v3 artifacts command expects npm directories to exist. Added debugging steps to list artifacts.
1 parent 0b3fe67 commit 94dcdae

1 file changed

Lines changed: 13 additions & 1 deletion

File tree

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

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -192,12 +192,24 @@ jobs:
192192
with:
193193
path: codelet/napi/artifacts
194194

195+
- name: List downloaded artifacts
196+
run: find artifacts -name "*.node" -type f
197+
working-directory: codelet/napi
198+
199+
- name: Create npm directories
200+
run: mkdir -p npm/darwin-arm64 npm/darwin-x64 npm/linux-arm64-gnu npm/linux-x64-gnu npm/win32-arm64-msvc npm/win32-x64-msvc
201+
working-directory: codelet/napi
202+
195203
- name: Move artifacts
196204
run: npm run artifacts
197205
working-directory: codelet/napi
198206

207+
- name: List moved artifacts
208+
run: find . -name "*.node" -type f | head -20
209+
working-directory: codelet/napi
210+
199211
- name: Generate platform packages
200-
run: napi prepublish -t npm
212+
run: npx napi prepublish -t npm --skip-npm-publish
201213
working-directory: codelet/napi
202214

203215
- name: List packages

0 commit comments

Comments
 (0)