Skip to content

Commit 3e60622

Browse files
authored
fix(release): publish with pnpm to remove workspace inside package.json (#2077)
1 parent 7224f3d commit 3e60622

File tree

5 files changed

+5605
-2036
lines changed

5 files changed

+5605
-2036
lines changed

.github/workflows/deploy-package.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,12 @@ 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+
37+
- name: Version package with lerna
38+
run: pnpm lerna version -y --no-private
3739
env:
3840
HUSKY: 0
3941
GH_TOKEN: ${{ secrets.GH_TOKEN }}
42+
43+
- name: Publish to npm
44+
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

lerna.json

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,11 @@
33
"npmClient": "pnpm",
44
"version": "independent",
55
"command": {
6-
"publish": {
7-
"conventionalCommits": true,
8-
"changelogPreset": "conventionalcommits"
9-
},
106
"version": {
11-
"message": "chore(release): publish"
7+
"conventionalCommits": true,
8+
"message": "chore(release): publish %s",
9+
"createRelease": "github",
10+
"loglevel": "verbose"
1211
}
1312
},
1413
"$schema": "node_modules/lerna/schemas/lerna-schema.json"

0 commit comments

Comments
 (0)