build: only stamp version info when releasing (#27362)

Also build releases into a dedicated output_base so you can't
accidentally publish with outdated version stamp.

Bump the version of rules_nodejs so we don't need to create the
symlink_prefixes for the .publish command to work.

PR Close #27362
This commit is contained in:
Alex Eagle
2018-11-29 17:10:29 -08:00
committed by Igor Minar
parent 35e02ad5e0
commit f5f323dae0
6 changed files with 22 additions and 12 deletions

View File

@ -165,7 +165,7 @@ def flatten_esm5(ctx):
ctx: the skylark rule execution context
Returns:
list of flattened files
depset of flattened files
"""
esm5_sources = []
result = []
@ -186,4 +186,4 @@ def flatten_esm5(ctx):
template = f,
substitutions = {},
)
return result
return depset(result)