Skip to content

Commit 4e1e19a

Browse files
authored
ci: update publish.yml and package.json to support monorepo (#90)
1 parent f394bc9 commit 4e1e19a

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

.github/workflows/publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,6 @@ jobs:
3232
run: npm run test
3333

3434
- name: Publish
35-
run: npm publish
35+
run: npm run publish
3636
env:
3737
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
],
66
"scripts": {
77
"prepare": "husky",
8+
"publish": "npx lerna publish from-package --pre-dist-tag canary --yes",
89
"build": "npx lerna run build",
910
"test": "npx lerna run test",
1011
"coverage": "npx nyc --reporter=lcov npm run test",

0 commit comments

Comments
 (0)