create .npmrc file automatically

This commit is contained in:
Jacob Overgaard
2023-03-21 16:33:29 +01:00
parent 75f9f14ea3
commit 1f58d4504b

View File

@@ -56,10 +56,10 @@ jobs:
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
scope: '@umbraco-cms'
- run: |
SHA_SHORT=$(echo $GITHUB_SHA | cut -c1-8)
npm version 13.0.0-next.$SHA_SHORT --allow-same-version --no-git-tag-version
- run: npm login --scope=@umbraco-cms --auth-type=legacy --registry=https://npm.pkg.github.com/
- run: npm publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}