Skip to content

Commit

Permalink
ci: update pr version detetction
Browse files Browse the repository at this point in the history
  • Loading branch information
janniks committed Jun 10, 2024
1 parent fb4fdf0 commit 0653e1a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/pull-request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/[email protected]
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`"
Expand Down

0 comments on commit 0653e1a

Please sign in to comment.