From 53470d6b184c124024ed638c5c172114c262f39a Mon Sep 17 00:00:00 2001 From: janniks Date: Fri, 26 Apr 2024 15:07:56 +0700 Subject: [PATCH] ci: update pr version detetction --- .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 637cc7417..b30ce94ff 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -54,12 +54,12 @@ jobs: - run: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/.npmrc env: NPM_TOKEN: ${{ secrets.NPM_TOKEN }} - - run: npx lerna publish --canary --force-publish --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 --dist-tag pr --no-verify-access --no-push --no-git-tag-version --yes env: SHA: ${{ steps.git-commit.outputs.sha }} SKIP_TESTS: true - id: published-version - run: echo "::set-output name=version::$(cat lerna.json | jq -r '.version')" + run: echo "::set-output name=version::$(cat packages/common/package.json | jq -r '.version')" - uses: janniks/pull-request-fixed-header@v1.0.1 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`"