publish to npm

This commit is contained in:
Jacob Overgaard
2023-03-22 08:52:12 +01:00
parent 1f58d4504b
commit dcfbee0388

View File

@@ -55,11 +55,12 @@ jobs:
- uses: actions/setup-node@v3
with:
node-version: 18
registry-url: https://npm.pkg.github.com/
registry-url: https://registry.npmjs.org/
scope: '@umbraco-cms'
always-auth: true
- 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 publish --tag next
env:
NODE_AUTH_TOKEN: ${{secrets.GITHUB_TOKEN}}
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}