Skip to content

Commit a88539f

Browse files
committed
ci: add global install smoke test to verify npm pack works
Runs `npm pack` → `npm install -g` → `bitsocial --version` on all three CI platforms to catch packaging/install regressions before publish.
1 parent b0422db commit a88539f

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/CI.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ jobs:
5555
- run: npm run build
5656
- run: npx oclif manifest
5757

58+
- name: Verify global install from pack
59+
shell: bash
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
run: |
63+
TARBALL=$(npm pack)
64+
npm install -g "./$TARBALL"
65+
bitsocial --version
66+
5867
# disable hosts we shouldn't use (Linux only)
5968
- name: Block unwanted hosts
6069
if: matrix.os == 'ubuntu-latest'

0 commit comments

Comments
 (0)