From 0b96d993b5333415fe71b8ac7ec37b2414b03659 Mon Sep 17 00:00:00 2001 From: Mike Hardy Date: Thu, 19 Dec 2024 14:26:47 -0500 Subject: [PATCH] docs: generate and commit API reference during release publish this should keep the API reference in sync with published releases without having to remember to generate it manually --- .releaserc | 2 +- packages/react-native/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.releaserc b/.releaserc index bb4722a9..0b0f82cb 100644 --- a/.releaserc +++ b/.releaserc @@ -33,7 +33,7 @@ "@semantic-release/git", { "assets": [ - "docs/react-native/release-notes.mdx", + "docs/react-native/", "packages/react-native/package.json", "packages/react-native/android/libs" ], diff --git a/packages/react-native/package.json b/packages/react-native/package.json index b8c8a14e..0f3cb372 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -12,7 +12,7 @@ "build:clean": "rimraf android/libs && rimraf android/build && rimraf ios/build && rimraf dist", "build:watch": "tsc --watch", "prepare": "yarn run build", - "prepublishOnly": "cd ../.. && yarn run build:core", + "prepublishOnly": "cd ../.. && yarn run build:core && yarn gen:reference", "format:android": "google-java-format --replace -i $(find . -type f -name \"*.java\" ! -path \"*/node_modules/*\" ! -path \"*/generated/*\")", "format:android:check": "google-java-format --set-exit-if-changed --replace -i $(find . -type f -name \"*.java\" ! -path \"*/node_modules/*\" ! -path \"*/generated/*\")", "format:ios": "npm_config_yes=true npx clang-format -i --glob=\"ios/**/*.{h,cpp,m,mm}\" --style=Google",