-
Notifications
You must be signed in to change notification settings - Fork 418
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into changeset-release/main
- Loading branch information
Showing
2 changed files
with
44 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,7 @@ | ||
# On the Version Packages branch | ||
# Generate and Commit artifacts to the Version Packages branch | ||
# It commits the Typedoc JSON files and code snippets JSON files | ||
# Generate and Commit snippets JSON files | ||
|
||
name: Commit Release Artifacts | ||
name: Commit Snippets JSON files | ||
|
||
on: | ||
push: | ||
|
@@ -13,7 +12,7 @@ concurrency: | |
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
setup: | ||
snippets: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
|
@@ -30,27 +29,12 @@ jobs: | |
- name: Build | ||
run: pnpm build | ||
|
||
typedoc: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Typedoc | ||
run: pnpm typedoc | ||
|
||
snippets: | ||
needs: setup | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: generate-docs | ||
run: pnpm generate-docs | ||
|
||
- name: generate-snippets | ||
run: pnpm generate-snippets | ||
|
||
commit: | ||
needs: [typedoc, snippets] | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
# On the Version Packages branch | ||
# Generate and Commit the Typedoc JSON files | ||
|
||
name: Commit Typdoc JSON files | ||
|
||
on: | ||
push: | ||
branches: | ||
- changeset-release/main | ||
|
||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.ref }} | ||
|
||
jobs: | ||
typedoc: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout branch | ||
uses: actions/checkout@v3 | ||
|
||
# bun setup is required, because pnpm typdoc will run pnpm build and some packages uses bun for build | ||
- name: Setup bun | ||
uses: oven-sh/setup-bun@v1 | ||
with: | ||
bun-version: 1.0.21 | ||
|
||
- name: Install | ||
uses: ./.github/composite-actions/install | ||
|
||
- name: Typedoc | ||
run: pnpm typedoc | ||
|
||
- name: Commit changes | ||
run: | | ||
git config --local user.email "[email protected]" | ||
git config --local user.name "GitHub Action" | ||
git add -A | ||
git commit -m "Commit Release Artifacts [skip ci]" | ||
git push | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |