mirror of
https://github.com/angular/angular.git
synced 2026-09-14 13:54:52 +08:00
build: update nodejs rules (#14622)
Updates to the latest version of the NodeJS rules that includes https://github.com/bazelbuild/rules_nodejs/commit/c40ceb960af4213164d4299d8fbc8220ebdd727f
This commit is contained in:
committed by
Andrew Seguin
parent
22b0ad6135
commit
0d7258b4e2
@@ -5,11 +5,8 @@ load("@bazel_tools//tools/build_defs/repo:http.bzl", "http_archive")
|
||||
# Add NodeJS rules (explicitly used for sass bundle rules)
|
||||
http_archive(
|
||||
name = "build_bazel_rules_nodejs",
|
||||
# TODO(devversion): temporarily depend on a specific commit because we want to make sure that
|
||||
# our CI is not flaky until there is a new version of the NodeJS rules. See commit:
|
||||
# https://github.com/bazelbuild/rules_nodejs/commit/c40ceb960af4213164d4299d8fbc8220ebdd727f
|
||||
url = "https://github.com/bazelbuild/rules_nodejs/archive/c40ceb960af4213164d4299d8fbc8220ebdd727f.zip",
|
||||
strip_prefix = "rules_nodejs-c40ceb960af4213164d4299d8fbc8220ebdd727f",
|
||||
url = "https://github.com/bazelbuild/rules_nodejs/archive/0.16.4.zip",
|
||||
strip_prefix = "rules_nodejs-0.16.4",
|
||||
)
|
||||
|
||||
# Add TypeScript rules
|
||||
@@ -83,7 +80,7 @@ check_bazel_version("0.18.0")
|
||||
|
||||
node_repositories(
|
||||
# For deterministic builds, specify explicit NodeJS and Yarn versions.
|
||||
node_version = "10.10.0",
|
||||
node_version = "10.13.0",
|
||||
# Use latest yarn version to support integrity field (added in yarn 1.10)
|
||||
yarn_version = "1.12.1",
|
||||
)
|
||||
|
||||
@@ -242,7 +242,6 @@ class PublishReleaseTask extends BaseReleaseTask {
|
||||
|
||||
/** Creates a specified tag and pushes it to the remote repository */
|
||||
private createAndPushReleaseTag(tagName: string, releaseNotes: string) {
|
||||
// TODO(devversion): find a way to extract the changelog part just for this version.
|
||||
if (!this.git.createTag('HEAD', tagName, releaseNotes)) {
|
||||
console.error(red(` ✘ Could not create the "${tagName}" tag.`));
|
||||
console.error(red(` Please make sure there is no existing tag with the same name.`));
|
||||
|
||||
Reference in New Issue
Block a user