File tree 3 files changed +12
-2
lines changed
3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change @@ -12,3 +12,4 @@ coverage
12
12
! .yarn /versions
13
13
.turbo
14
14
.DS_Store
15
+ publish.env
Original file line number Diff line number Diff line change @@ -73,8 +73,16 @@ yarn demo
73
73
74
74
## Publishing new versions
75
75
76
- Note: This can only be done by someone with permission to the org on ` npm ` .
76
+ Note: This can only be done by someone with permission to the org on ` npm ` and requires 2FA setup .
77
77
78
78
``` sh
79
- yarn lerna publish
79
+ yarn publish
80
80
```
81
+
82
+ You'll need to add a ` ./publish.env ` at the root of the repo. And inside define your 2FA codes:
83
+
84
+ ```
85
+ NPM_CONFIG_OTP=""
86
+ ```
87
+
88
+ The publish alias relies on 1password for developer to fetch the private information.
Original file line number Diff line number Diff line change 53
53
" internals/*"
54
54
],
55
55
"scripts" : {
56
+ "publish" : " op run --env-file='./publish.env' -- yarn lerna publish" ,
56
57
"demo" : " node --watch-path=packages/ packages/demo/dist/esm/index.js" ,
57
58
"dev" : " turbo watch tsc" ,
58
59
"prepare" : " husky && turbo tsc attw" ,
You can’t perform that action at this time.
0 commit comments