This repository was archived by the owner on Apr 2, 2026. It is now read-only.
fix: ensure auth status is shown during npm install even if hooks are… #19
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: CI | |
| on: | |
| push: | |
| branches: [ main ] | |
| pull_request: | |
| branches: [ main ] | |
| jobs: | |
| go-test: | |
| name: Go Build & Vet | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Set up Go | |
| uses: actions/setup-go@v5 | |
| with: | |
| go-version-file: go.mod | |
| - name: Go Build | |
| run: go build ./... | |
| - name: Go Vet | |
| run: go vet ./... | |
| node-test: | |
| name: Node & npm Scripts | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v4 | |
| - name: Setup Node.js | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| - name: npm Pack (Dry Run) | |
| run: npm pack --dry-run | |
| - name: Check Scripts Syntax | |
| run: | | |
| node --check npm/install.js | |
| node --check npm/run.js | |
| - name: Test npm/install.js (Partial Run) | |
| run: | | |
| # Create a dummy bin dir to simulate local state | |
| mkdir -p npm/bin | |
| # Verify the script can at least be invoked | |
| node npm/install.js || true | |
| # Note: Full execution might fail if no release matches 0.0.0, | |
| # but we check if it handles failures gracefully. |