In your build pipeline, you will need to run the CLI tool. Here's how to run it:
npx @highlight-run/sourcemap-uploader upload --path="/path/to/sourcemaps"
You can also add this as an npm script
// In package.json
{
"scripts": {
"upload-sourcemaps": "npx @highlight-run/sourcemap-uploader upload --path=\"/path/to/sourcemaps\""
}
}
You can test your changes locally by running the following commands:
yarn build
node dist/index.js upload ...