File tree Expand file tree Collapse file tree 2 files changed +6
-3
lines changed
Expand file tree Collapse file tree 2 files changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -122,9 +122,12 @@ jobs:
122122 run : |
123123 pnpm exec lerna version ${{ steps.determine-publish-type.outputs.version_args }}
124124
125+ # We use `pnpm publish` instead of `lerna publish` because lerna doesn't
126+ # resolve pnpm's `catalog:` protocol in package.json dependencies.
127+ # Only pnpm itself properly resolves catalog references during publish.
125128 - name : Publish to npm (OIDC)
126129 run : |
127- pnpm exec lerna publish from-git --yes --dist- tag "${{ steps.determine-publish-type.outputs.dist_tag }}"
130+ pnpm publish -r --access public -- tag "${{ steps.determine-publish-type.outputs.dist_tag }}" --no-git-checks --report-summary
128131
129132 - name : Push tags to git
130133 run : |
Original file line number Diff line number Diff line change 2121 "publish:olp-proto-ts" : " ./protoV2/olp/publish.sh" ,
2222 "generate:abacus-proto-ts" : " ./protoV2/abacus/gen.sh" ,
2323 "publish:abacus-proto-ts" : " ./protoV2/abacus/publish.sh" ,
24- "release:patch" : " pnpm build:fresh && lerna version patch --conventional-commits --force-git-tag --yes && lerna publish from-git --yes " ,
25- "release:minor" : " pnpm build:fresh && lerna version minor --conventional-commits --force-git-tag --yes && lerna publish from-git --yes " ,
24+ "release:patch" : " pnpm build:fresh && lerna version patch --conventional-commits --force-git-tag --yes && pnpm publish -r --access public --tag latest --no-git-checks " ,
25+ "release:minor" : " pnpm build:fresh && lerna version minor --conventional-commits --force-git-tag --yes && pnpm publish -r --access public --tag latest --no-git-checks " ,
2626 "build:watch" : " node etc/bootstrapEnv && lerna run build:watch --parallel --stream" ,
2727 "build:fresh" : " pnpm clean-up && pnpm build:check" ,
2828 "patch" : " lerna version patch" ,
You can’t perform that action at this time.
0 commit comments