GitLab > Create new project > Create blank project > Select Project deployment target as “Registry”
For more details, please refer to this documentation.
To publish an NPM package, the following is required:
1. Project ID: Click on your project and you can find your Project ID
2. Scope: The value used for the @scope is the root of the project that will host the packages and not the root of the project with the source code of the package itself. The scope should be lowercase.
3. Deploy Token