npm ci
npm test -- --runInBand
npm run build
npm pack --dry-runTests build dist/ with source maps for coverage. Run npm run build before npm pack so the package contains no .map files. npm publish does this automatically via prepublishOnly.
Real API tests require CAPTCHA_API_KEY and the target variables documented in tests/README.md:
npm run test:integration -- --runInBand- Confirm that
package.json,package-lock.json, andsrc/version.tscontain the same version. - Push
maintohttps://github.com/captcha-solver-api/javascript-sdk. - Add an npm automation token as the
NPM_TOKENrepository secret. - Create and push a matching
v<version>tag. The tag starts the publish workflow. - In a new empty directory, run
npm install @captcha-solver-api/javascript-sdkand importCaptchaClient,Tasks, and__version__.
A version removed from npm cannot be reused. If npm reports that 1.0.0 existed before, update all three version files to the next unused version before publishing.