Skip to content

Commit 420a332

Browse files
committed
fix(release): publish with pnpm to remove workspace inside package.json
1 parent fee0764 commit 420a332

File tree

6 files changed

+334
-2
lines changed

6 files changed

+334
-2
lines changed

.github/workflows/deploy-package.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,14 @@ jobs:
3333
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
3434
env:
3535
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
36-
- run: pnpm lerna publish -y --create-release github
36+
- name: Version package with lerna
37+
run: pnpm lerna version -y --no-push --no-private
3738
env:
3839
HUSKY: 0
3940
GH_TOKEN: ${{ secrets.GH_TOKEN }}
41+
42+
- name: Push version and tags
43+
run: git push origin HEAD:main --follow-tags
44+
45+
- name: Publish to npm
46+
run: pnpm -r publish --access public --tag latest

.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,7 @@ coverage
2727
# Protobuf definition
2828
protobuf
2929
.bufcache
30+
31+
32+
# lerna
33+
lerna-debug.log

.npmrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
#https://pnpm.io/settings#nodelinker
2+
# We are using bundledDependencies
3+
node-linker=hoisted

0 commit comments

Comments
 (0)