Skip to content

Commit

Permalink
Merge branch 'main' into changeset-release/main
Browse files Browse the repository at this point in the history
  • Loading branch information
MananTank authored Jan 17, 2024
2 parents 869a80c + 056643a commit b6e513e
Show file tree
Hide file tree
Showing 2 changed files with 44 additions and 19 deletions.
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:
Expand All @@ -13,7 +12,7 @@ concurrency:
group: ${{ github.workflow }}-${{ github.ref }}

jobs:
setup:
snippets:
runs-on: ubuntu-latest
steps:
- name: Checkout branch
Expand All @@ -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]"
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/typedoc.yml
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 }}

0 comments on commit b6e513e

Please sign in to comment.