build: add branch npm tagging

This commit is contained in:
janniks
2024-03-21 17:42:44 +01:00
committed by janniks
parent 85daaffea3
commit f3315e64bc

View File

@@ -59,3 +59,9 @@ jobs:
with:
header: "> This PR was published to npm with the version `${{ steps.published-version.outputs.version }}`\n> e.g. `npm install @stacks/common@${{ steps.published-version.outputs.version }} --save-exact`"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- run: |
git reset --hard
npx lerna publish --canary --preid $BRANCH.$SHA --dist-tag $BRANCH --no-verify-access --no-push --no-git-tag-version --yes
if: ${{ (github.head_ref || github.ref_name) == 'nakamoto' || (github.head_ref || github.ref_name) == 'next' }}
env:
BRANCH: ${{ github.head_ref || github.ref_name }}