File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,14 @@ ARCHIVE="rules_nodejs-$TAG.tar.gz"
11
11
git archive --format=tar --prefix=" ${PREFIX} /" " ${TAG} " | gzip > " $ARCHIVE "
12
12
SHA=$( shasum -a 256 " $ARCHIVE " | awk ' {print $1}' )
13
13
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
+
14
22
cat << EOF
15
23
## Using Bzlmod with Bazel 6 or greater
16
24
Original file line number Diff line number Diff line change 6
6
)
7
7
8
8
# Lower-bounds (minimum) versions for direct runtime dependencies
9
+ bazel_dep (name = "bazel_lib" , version = "3.0.0-beta.1" )
9
10
bazel_dep (name = "bazel_skylib" , version = "1.4.1" )
10
11
bazel_dep (name = "platforms" , version = "0.0.5" )
11
12
You can’t perform that action at this time.
0 commit comments