Skip to content

Initial release of @dromney/mapthis 0.1.0 #1

Initial release of @dromney/mapthis 0.1.0

Initial release of @dromney/mapthis 0.1.0 #1

Workflow file for this run

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