Skip to content

Commit af966bc

Browse files
committed
fix(ci): improve npm publish workflow
- Add npm ci --ignore-scripts to skip native build - Add TypeScript compilation step - Add package verification before publish - Use --ignore-scripts for npm publish to avoid rebuild
1 parent c88dcfd commit af966bc

1 file changed

Lines changed: 15 additions & 1 deletion

File tree

.github/workflows/build.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -337,7 +337,21 @@ jobs:
337337
find artifacts -name "*.node" -exec cp {} Release/ \;
338338
ls -lh Release/
339339
340+
- name: Install dependencies (skip native build)
341+
run: npm ci --ignore-scripts
342+
343+
- name: Build TypeScript
344+
run: npm run build:ts
345+
346+
- name: Verify package contents
347+
run: |
348+
echo "=== Package contents ==="
349+
npm pack --dry-run
350+
echo ""
351+
echo "=== Release binaries ==="
352+
ls -lh Release/
353+
340354
- name: Publish to npm
341-
run: npm publish
355+
run: npm publish --ignore-scripts
342356
env:
343357
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)