Skip to content

Commit

Permalink
docs: generate and commit API reference during release publish
Browse files Browse the repository at this point in the history
this should keep the API reference in sync with published releases
without having to remember to generate it manually
  • Loading branch information
mikehardy committed Dec 19, 2024
1 parent e0d7c7a commit c3ac8e1
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -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"
],
Expand Down
2 changes: 1 addition & 1 deletion packages/react-native/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit c3ac8e1

Please sign in to comment.