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