Skip to content

Commit c615453

Browse files
authored
fix(message): remove %s and use env for deploy to npm (#2088)
1 parent 9be6360 commit c615453

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

.github/workflows/deploy-package.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,14 @@ jobs:
3030
check-latest: true
3131
- run: pnpm install
3232
- run: pnpm run build
33-
- run: echo //registry.npmjs.org/:_authToken=${NPM_TOKEN} > .npmrc
34-
env:
35-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
3633

3734
- name: Version package with lerna
38-
run: pnpm lerna version -y --no-private
35+
run: pnpm lerna version -y --no-private --create-release github
3936
env:
4037
HUSKY: 0
4138
GH_TOKEN: ${{ secrets.GH_TOKEN }}
4239

4340
- name: Publish to npm
4441
run: pnpm -r publish --access public --tag latest
42+
env:
43+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

lerna.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
"command": {
66
"version": {
77
"conventionalCommits": true,
8-
"message": "chore(release): publish %s",
8+
"message": "chore(release): publish",
99
"createRelease": "github",
1010
"loglevel": "verbose"
1111
}

0 commit comments

Comments
 (0)