algoan / nestjs-components

A list of useful components for NestJS applications
https://www.algoan.com
253 stars 41 forks source link

[CI] Fix token used during both publish #823

Closed g-ongenae closed 9 months ago

g-ongenae commented 9 months ago

Description

Fix token used during both publish on NPM and GitHub Packages.

Motivation and Context

My previous PR #821 to add dual publish didn't work as expected.

It actually does not publish to NPM anymore. I infer this is because the NODE_AUTH_TOKEN is not uses correctly by lerna during the publish.

To fix that, we define the token and registry to use in the .npmrc file.

This was the method used to publish only on NPM.

Types of changes