Skip to content

Commit cac051a

Browse files
committed
fix
1 parent 9bc2eef commit cac051a

File tree

2 files changed

+9
-0
lines changed

2 files changed

+9
-0
lines changed

.github/workflows/release_prep.sh

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,14 @@ ARCHIVE="rules_nodejs-$TAG.tar.gz"
1111
git archive --format=tar --prefix="${PREFIX}/" "${TAG}" | gzip > "$ARCHIVE"
1212
SHA=$(shasum -a 256 "$ARCHIVE" | awk '{print $1}')
1313

14+
# Add generated API docs to the release, see https://github.com/bazelbuild/bazel-central-registry/issues/5593
15+
docs="$(mktemp -d)"; targets="$(mktemp)"
16+
bazel --output_base="$docs" query --output=label --output_file="$targets" 'kind("starlark_doc_extract rule", //...)'
17+
bazel --output_base="$docs" build --target_pattern_file="$targets" --remote_download_regex='.*doc_extract\.binaryproto'
18+
tar --create --auto-compress \
19+
--directory "$(bazel --output_base="$docs" info bazel-bin)" \
20+
--file "$GITHUB_WORKSPACE/${ARCHIVE%.tar.gz}.docs.tar.gz" .
21+
1422
cat << EOF
1523
## Using Bzlmod with Bazel 6 or greater
1624

MODULE.bazel

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ module(
66
)
77

88
# Lower-bounds (minimum) versions for direct runtime dependencies
9+
bazel_dep(name = "bazel_lib", version = "3.0.0-beta.1")
910
bazel_dep(name = "bazel_skylib", version = "1.4.1")
1011
bazel_dep(name = "platforms", version = "0.0.5")
1112

0 commit comments

Comments
 (0)