mirror of
https://github.com/zoriya/react-native-video.git
synced 2025-12-06 07:16:12 +00:00
chore: update release script (#4727)
This commit is contained in:
@@ -7,7 +7,9 @@
|
||||
"ios": "react-native run-ios",
|
||||
"lint": "eslint .",
|
||||
"typecheck": "tsc",
|
||||
"start": "react-native start --client-logs"
|
||||
"start": "react-native start --client-logs",
|
||||
"bundle-install": "bundle install",
|
||||
"pods": "cd ios && pod install && cd .."
|
||||
},
|
||||
"dependencies": {
|
||||
"@react-native-community/slider": "^4.5.6",
|
||||
|
||||
11
package.json
11
package.json
@@ -64,7 +64,8 @@
|
||||
"release": true
|
||||
},
|
||||
"hooks": {
|
||||
"before:release": "bun run --cwd packages/react-native-video build"
|
||||
"before:release": "bun run --cwd packages/react-native-video build && bun run --cwd packages/drm-plugin build",
|
||||
"before:git": "bun install && bun example bundle-install && bun example pods && git add bun.lock && git add example/ios/Podfile.lock"
|
||||
},
|
||||
"plugins": {
|
||||
"@release-it/bumper": {
|
||||
@@ -73,6 +74,10 @@
|
||||
"file": "packages/react-native-video/package.json",
|
||||
"path": "version"
|
||||
},
|
||||
{
|
||||
"file": "packages/drm-plugin/package.json",
|
||||
"path": "version"
|
||||
},
|
||||
{
|
||||
"file": "example/package.json",
|
||||
"path": "version"
|
||||
@@ -91,6 +96,10 @@
|
||||
"type": "fix",
|
||||
"section": "Bug Fixes 🐛"
|
||||
},
|
||||
{
|
||||
"type": "refactor",
|
||||
"section": "Code Refactoring 🛠"
|
||||
},
|
||||
{
|
||||
"type": "chore(deps)",
|
||||
"section": "Dependency Upgrades 📦"
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "@twg/react-native-video-drm",
|
||||
"version": "0.1.0",
|
||||
"version": "7.0.0-alpha.5",
|
||||
"description": "DRM plugin for react-native-video",
|
||||
"main": "./lib/module/index.js",
|
||||
"types": "./lib/typescript/src/index.d.ts",
|
||||
@@ -41,7 +41,7 @@
|
||||
"prepare": "bun run build",
|
||||
"build": "bob build",
|
||||
"specs": "nitrogen",
|
||||
"release": "release-it --only-version"
|
||||
"release": "release-it --preRelease alpha --npm.tag=next"
|
||||
},
|
||||
"keywords": [
|
||||
"react-native",
|
||||
|
||||
@@ -18,14 +18,9 @@ cd ../..
|
||||
|
||||
echo "[DRM Plugin] Publishing drm plugin"
|
||||
|
||||
read -p "[DRM Plugin] Do you want to release the DRM plugin? (y/n): " confirm
|
||||
if [[ $confirm == "y" || $confirm == "Y" ]]; then
|
||||
cd packages/drm-plugin
|
||||
bun run release $@
|
||||
cd ../..
|
||||
else
|
||||
echo "[DRM Plugin] Skipping DRM plugin release."
|
||||
fi
|
||||
cd packages/drm-plugin
|
||||
bun run release $@
|
||||
cd ../..
|
||||
|
||||
echo "[React Native Video] Making Github Release"
|
||||
bun run release:github $@
|
||||
|
||||
Reference in New Issue
Block a user