npm distribution for the gitlawb CLI.
| Package | Description |
|---|---|
@gitlawb/gl |
Main wrapper — auto-selects the correct binary |
@gitlawb/gl-darwin-arm64 |
macOS Apple Silicon binary |
@gitlawb/gl-darwin-x64 |
macOS Intel binary |
@gitlawb/gl-linux-arm64 |
Linux ARM binary |
@gitlawb/gl-linux-x64 |
Linux x64 binary |
After a gitlawb release is tagged and binaries are uploaded to GitHub:
./scripts/publish.sh 0.3.7This downloads the release binaries, copies them into platform packages, and publishes all 5 packages to npm.
- User runs
npm install -g @gitlawb/gl - npm resolves
optionalDependencies— only installs the matching platform package (viaos/cpufields) postinstallrunsinstall.jswhich copies binaries from the platform package intobin/glandgit-remote-gitlawbare now available in PATH
Add this step after the Homebrew dispatch in your release workflow:
- name: Publish to npm
env:
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
echo "//registry.npmjs.org/:_authToken=${NPM_TOKEN}" > ~/.npmrc
cd gl-npm
./scripts/publish.sh ${{ github.ref_name }}