From 12a4be25564b1e3f6784f180f48c91c14b49f111 Mon Sep 17 00:00:00 2001 From: janniks Date: Thu, 4 Apr 2024 18:07:05 +0700 Subject: [PATCH] ci: fix missing package publish --- .github/workflows/pull-request.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index 9fe95bcc9..f587b8a92 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -52,7 +52,7 @@ jobs: - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: npx lerna publish prepatch --preid pr.$SHA --dist-tag pr --no-verify-access --no-push --no-git-tag-version --yes + - run: npx lerna publish --canary --force-publish --preid pr.$SHA --dist-tag pr --no-verify-access --no-push --no-git-tag-version --yes env: SHA: ${{ steps.git-commit.outputs.sha }} SKIP_TESTS: true @@ -64,7 +64,7 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - run: | git reset --hard - npx lerna publish --canary --preid $BRANCH --dist-tag $BRANCH --no-verify-access --no-push --no-git-tag-version --yes + npx lerna publish --canary --force-publish --preid $BRANCH --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 }}