CLI for uploading source maps to Nanoloop.
npm install -D @nanoloop/clinpm run build && npx @nanoloop/cli upload --token $NANOLOOP_TOKEN --app $APP_ID --dist ./dist| Flag | Env Variable | Description |
|---|---|---|
--token |
NANOLOOP_TOKEN |
API token (required) |
--app |
NANOLOOP_APP_ID |
App ID (required) |
--dist |
Directory containing source maps | |
--release |
Release version (default: git commit hash) | |
--url-prefix |
URL prefix for source files | |
--dry-run |
List files without uploading |
# GitHub Actions
- name: Upload source maps
run: npx @nanoloop/cli upload --dist ./dist
env:
NANOLOOP_TOKEN: ${{ secrets.NANOLOOP_TOKEN }}
NANOLOOP_APP_ID: ${{ vars.NANOLOOP_APP_ID }}- Go to nanoloop.app/settings
- Create a new API token
- Copy the token (it is only shown once)
- macOS (Apple Silicon)
- macOS (Intel)
- Linux (x64)
- Linux (arm64)
- Windows (x64)
MIT