Skip to content

Commit df4b3ec

Browse files
committed
chore(ci): 🔧 Update CI configuration for documentation builds
Enhanced the CI configuration to include a build step before updating documentation. This ensures that the latest changes are compiled and ready for documentation updates. • Added a build step to the update-docs-on-main.yml workflow. • Updated the token used for creating pull requests in both update-docs-on-main.yml and update-size-on-main.yml. This change improves the reliability of the documentation generation process.
1 parent fb69e9d commit df4b3ec

2 files changed

Lines changed: 6 additions & 3 deletions

File tree

‎.github/workflows/update-docs-on-main.yml‎

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ jobs:
2020
- name: Install Dependencies
2121
run: npm ci
2222

23+
- name: Build
24+
run: npm run build
25+
2326
- name: Update Docs
2427
run: npm run update-docs
2528

@@ -31,13 +34,13 @@ jobs:
3134
if: steps.ifChange.outputs.changed == 'yes'
3235
uses: peter-evans/create-pull-request@v7
3336
with:
34-
token: ${{ secrets.LIT_ROBOT_ACCESS_TOKEN }}
37+
token: ${{ secrets.GITHUB_TOKEN }}
3538
commit-message: 'docs: update API docs'
3639
author: lit-robot <lit-robot@google.com>
3740
committer: lit-robot <lit-robot@google.com>
3841
title: 'docs: update API docs'
3942
body: This PR was auto generated by the update-docs-on-main GitHub action.
40-
reviewers: e111077,asyncliz,AndrewJakubowicz
43+
reviewers: maicol07
4144
branch: auto-update-docs
4245
labels: |
4346
Ready for Google

‎.github/workflows/update-size-on-main.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ jobs:
3131
if: steps.ifChange.outputs.changed == 'yes'
3232
uses: peter-evans/create-pull-request@v7
3333
with:
34-
token: ${{ secrets.LIT_ROBOT_ACCESS_TOKEN }}
34+
token: ${{ secrets.GITHUB_TOKEN }}
3535
commit-message: 'chore: update sizes'
3636
author: lit-robot <lit-robot@google.com>
3737
committer: lit-robot <lit-robot@google.com>

0 commit comments

Comments
 (0)