diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 2e6db46d..d506b52b 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -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 }}