mirror of
https://github.com/zoriya/react-native-omni.git
synced 2026-08-04 21:26:48 +00:00
fix: setup sementic-release
This commit is contained in:
@@ -6,7 +6,7 @@ permissions:
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
- master
|
||||
paths:
|
||||
- '.github/workflows/android-build.yml'
|
||||
- 'example/android/**'
|
||||
|
||||
@@ -1,6 +1,9 @@
|
||||
name: Release
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
workflow_dispatch:
|
||||
|
||||
permissions:
|
||||
@@ -28,12 +31,15 @@ jobs:
|
||||
uses: oven-sh/setup-bun@v2
|
||||
with:
|
||||
bun-version: latest
|
||||
# OIDC trusted publishing requires npm CLI >= 11.5.1; ubuntu-latest ships an older one.
|
||||
- name: Upgrade npm CLI (for OIDC trusted publishing)
|
||||
run: npm install -g npm@latest
|
||||
- name: Cache bun dependencies
|
||||
id: bun-cache
|
||||
uses: actions/cache@v4
|
||||
with:
|
||||
path: ~/.bun/install/cache
|
||||
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lockb') }}
|
||||
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
|
||||
restore-keys: |
|
||||
${{ runner.os }}-bun-
|
||||
|
||||
@@ -45,9 +51,9 @@ jobs:
|
||||
|
||||
- name: Release
|
||||
env:
|
||||
# No NPM_TOKEN: auth happens via OIDC trusted publishing (id-token: write above).
|
||||
# Provenance is generated automatically, so NPM_CONFIG_PROVENANCE is not needed.
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
|
||||
NPM_CONFIG_PROVENANCE: true
|
||||
GIT_AUTHOR_NAME: ${{ github.actor }}
|
||||
GIT_AUTHOR_EMAIL: '${{ github.actor }}@users.noreply.github.com'
|
||||
GIT_COMMITTER_NAME: ${{ github.actor }}
|
||||
|
||||
@@ -0,0 +1,9 @@
|
||||
{
|
||||
"branches": ["master"],
|
||||
"plugins": [
|
||||
"@semantic-release/commit-analyzer",
|
||||
"@semantic-release/release-notes-generator",
|
||||
"@semantic-release/npm",
|
||||
"@semantic-release/github"
|
||||
]
|
||||
}
|
||||
+7
-5
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "react-native-omni",
|
||||
"version": "0.1.0",
|
||||
"version": "0.0.0-development",
|
||||
"description": "video player using vlc and videojs",
|
||||
"main": "./lib/commonjs/index.js",
|
||||
"module": "./lib/module/index.js",
|
||||
@@ -14,7 +14,8 @@
|
||||
"typecheck": "tsc --noEmit && tsc -p plugin/tsconfig.json --noEmit",
|
||||
"build:plugin": "tsc -p plugin/tsconfig.json",
|
||||
"build": "bun run typecheck && bob build && bun run build:plugin",
|
||||
"codegen": "nitrogen --logLevel=\"debug\" && node post-script.js"
|
||||
"codegen": "nitrogen --logLevel=\"debug\" && node post-script.js",
|
||||
"release": "semantic-release"
|
||||
},
|
||||
"keywords": [
|
||||
"react-native",
|
||||
@@ -47,11 +48,11 @@
|
||||
"workspaces": [
|
||||
"example"
|
||||
],
|
||||
"repository": "https://github.com/zoeroux/react-native-omni.git",
|
||||
"repository": "https://github.com/zoriya/react-native-omni.git",
|
||||
"author": "Zoe Roux",
|
||||
"license": "MIT",
|
||||
"bugs": "https://github.com/zoeroux/react-native-omni/issues",
|
||||
"homepage": "https://github.com/zoeroux/react-native-omni#readme",
|
||||
"bugs": "https://github.com/zoriya/react-native-omni/issues",
|
||||
"homepage": "https://github.com/zoriya/react-native-omni#readme",
|
||||
"publishConfig": {
|
||||
"access": "public",
|
||||
"registry": "https://registry.npmjs.org/"
|
||||
@@ -71,6 +72,7 @@
|
||||
"react-native": "0.86.0",
|
||||
"react-native-builder-bob": "^0.43.0",
|
||||
"react-native-nitro-modules": "0.36.1",
|
||||
"semantic-release": "^25.0.7",
|
||||
"typescript": "^7.0.2"
|
||||
},
|
||||
"peerDependencies": {
|
||||
|
||||
Reference in New Issue
Block a user