Skip to content

Commit 3277cc0

Browse files
committed
ci: fix docs pull request workflow
Fix the workflow for syncing the generated reference.md file to the documenation workflow by adding a step to install a newer nodejs version. Also update the script so that if the 'yarn' step fails, the script will not continue. (Combining 'yarn && yarn prettier ...' in one command meant that even with 'set -e', an error from 'yarn' would not stop the script.)
1 parent 05ce0e8 commit 3277cc0

3 files changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/docs.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ jobs:
1515
with:
1616
go-version-file: .tool-versions
1717

18+
- uses: actions/setup-node@53b83947a5a98c8d113130e565377fae1a50d02f
19+
with:
20+
node-version-file: .tool-versions
21+
1822
- name: generate docs
1923
run: make docs
2024

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
golangci-lint 2.11.4
22
golang 1.26.2
3+
nodejs 24.15.0

scripts/open-docs-pull-request.sh

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,8 @@ git clone --depth 1 \
1818
echo "Copying contents to git repo"
1919
cp -R "$source_path" "$clone_dir/$destination_path"
2020
cd "$clone_dir"
21-
yarn && yarn prettier --write "$destination_path/$source_path"
21+
yarn
22+
yarn prettier --write "$destination_path/$source_path"
2223
git checkout -b "$destination_head_branch"
2324

2425
if [ -z "$(git status -z)" ]; then

0 commit comments

Comments
 (0)