Initial release of @dromney/mapthis 0.1.0 #1
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: | |
| build: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-node@v4 | |
| with: | |
| node-version: "20" | |
| cache: "npm" | |
| - run: npm ci | |
| - run: npm run typecheck | |
| - run: npm test | |
| - run: npm run build | |
| - name: Check dist runtime bundles do not read env or embed keys | |
| run: | | |
| # Scan only runtime JS, not .d.ts (type-only) or source maps, | |
| # because JSDoc @example blocks legitimately mention process.env. | |
| if grep -rE "process\.env\.|sk-[a-zA-Z0-9]{20,}" dist/ --include="*.js" --include="*.cjs"; then | |
| echo "::error::dist runtime bundles contain process.env reads or possible API keys" | |
| exit 1 | |
| fi |