Skip to content

Latest commit

 

History

History
45 lines (29 loc) · 1.21 KB

File metadata and controls

45 lines (29 loc) · 1.21 KB

Package development notes

To use and debug package locally you don't need publish it to NPM registry:

$ cd <package-location>
$ npm install && npm run build && npm link

After that you have to create symlink to your package in your project folder:

$ cd <project-location>
$ npm link @snyk/code-client

Publishing

Before publishing make sure test pass

Test variables:

  • SNYK_API_HOST is the API server host (by default: https://deeproxy.dev.snyk.io)
  • SNYK_API_KEY is a sessionToken of a user with access to the Snyk
$ cd <package-location>
$ SNYK_API_HOST=... SNYK_API_KEY=... npm run test

Note: the legacy authentication helpers exported by @snyk/code-client are kept for compatibility, but they are not part of the test suite and are not used by current internal consumers.

Publish

Make sure you checked documentation about semantic release prefixes

For example, to make a major version your message must follow this format:

feat: <short message>

BREAKING CHANGE: <longer description>

No need to do anything else. We have CircleCI CI/CD pipeline with automatic semantic versioning.