Github workflow action to create .npmrc file for github to the root folder
Pass all sensitive data using secrets.
Organization name (Github repository name)
AuthToken that is able to download files from the repository, can also be passed as env and it's rather recommended this way
uses: ferluisxd/create-npmrc@3
with:
org_name: lig0
auth_token: 31352d11daasdf769942919dsafas594a5d
env:
AUTH_TOKEN: ${{ secrets.github_auth_token }}
@lig0:registry = https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=31352d11daasdf769942919dsafas594a5d