Skip to content

Commit 4e328ca

Browse files
committed
fix: 更新readme
解决方案:NA 影响范围:all 关联工单:NA 更新版本:NA
1 parent 4810382 commit 4e328ca

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

README.md

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,49 @@ MIT
3434
---
3535

3636
Made with [create-react-native-library](https://github.com/callstack/react-native-builder-bob)
37+
38+
# 更新版本号
39+
# 编辑 package.json 文件,将 "version": "0.8.0" 更新为 "version": "0.9.0"
40+
41+
# 提交更改
42+
git add .
43+
git commit -m "Update to version 0.9.0"
44+
45+
# 使用 release-it 发布版本
46+
npm run release
47+
48+
# 登录 npm(如果尚未登录)
49+
npm login
50+
51+
# 发布到 npm
52+
npm publish
53+
54+
# 验证发布
55+
npm info react-native-printer-imin
56+
57+
# 清理 npm 缓存
58+
npm cache clean --force
59+
60+
# 清理 yarn 缓存
61+
yarn cache clean
62+
63+
# 删除 node_modules 目录和 yarn.lock 文件
64+
rm -rf node_modules yarn.lock
65+
66+
# 重新安装依赖项
67+
yarn install
68+
69+
# 更新 Gradle 和 Kotlin 版本
70+
# 编辑 android/build.gradle 文件,确保 Gradle 和 Kotlin 版本是最新的
71+
72+
# 重新构建项目
73+
cd android
74+
./gradlew clean
75+
cd ..
76+
yarn start --reset-cache
77+
78+
# 如果报错,根据报错提示下载相应的库文件,如:
79+
yarn add react-native-screens@3.29.0
80+
81+
# 执行完成之后再次执行指令
82+
yarn start --reset-cache

0 commit comments

Comments
 (0)