Skip to content

Commit 748b140

Browse files
committed
ci: auto-regenerate API docs on release
1 parent 2fe441f commit 748b140

2 files changed

Lines changed: 9 additions & 6 deletions

File tree

.github/workflows/create-release-pr.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,15 @@ jobs:
157157
git diff --staged --quiet && exit 0
158158
git commit -m "Release $NEW_VERSION" && git push
159159
160+
- name: Regenerate API docs
161+
run: |
162+
vp run docgen
163+
164+
# Only commit if there are changes
165+
git add -A
166+
git diff --staged --quiet && exit 0
167+
git commit -m "Regenerate docs for ${{ inputs.capacitor_version }}" && git push
168+
160169
create-pr:
161170
needs: [prep, update_version]
162171
uses: OneSignal/sdk-shared/.github/workflows/create-release.yml@main

README.md

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -163,12 +163,6 @@ Current-user operations exposed via `OneSignal.User`.
163163

164164
Push subscription state and controls exposed via `OneSignal.User.pushSubscription`.
165165

166-
| Prop | Type |
167-
| ------------- | --------------------------- |
168-
| **`id`** | <code>string \| null</code> |
169-
| **`token`** | <code>string \| null</code> |
170-
| **`optedIn`** | <code>boolean</code> |
171-
172166
| Method | Signature | Description |
173167
| ----------------------- | ------------------------------------------------------------------------------------------------------------------------------------ | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
174168
| **getIdAsync** | () =&gt; Promise&lt;string \| null&gt; | Get the current device's push subscription ID, or null if not yet assigned. |

0 commit comments

Comments
 (0)