release(bazel): change publish-next script to publish bazel artifacts (#23097)

PR Close #23097
This commit is contained in:
Alex Eagle 2018-03-30 13:48:47 -07:00 committed by Igor Minar
parent 22cb2c9441
commit 15278784fc
19 changed files with 32 additions and 1 deletions

View File

@ -24,6 +24,7 @@ ng_package(
"//packages/animations/browser/testing:package.json",
],
entry_point = "packages/animations/index.js",
tags = ["release-with-framework"],
deps = [
":animations",
"//packages/animations/browser",

View File

@ -19,5 +19,6 @@ npm_package(
"//packages/bazel/": "//",
"angular/packages/bazel/": "angular/",
},
tags = ["release-with-framework"],
deps = [":workspace"],
)

View File

@ -26,6 +26,7 @@ ng_package(
"//packages/common/testing:package.json",
],
entry_point = "packages/common/index.js",
tags = ["release-with-framework"],
deps = [
"//packages/common",
"//packages/common/http",

View File

@ -33,5 +33,6 @@ npm_package(
srcs = [
"package.json",
],
tags = ["release-with-framework"],
deps = [":compiler-cli"],
)

View File

@ -21,6 +21,7 @@ ng_package(
],
entry_point = "packages/compiler/compiler.js",
include_devmode_srcs = True,
tags = ["release-with-framework"],
deps = [
":compiler",
"//packages/compiler/testing",

View File

@ -24,6 +24,7 @@ ng_package(
"//packages/core/testing:package.json",
],
entry_point = "packages/core/index.js",
tags = ["release-with-framework"],
deps = [
":core",
"//packages/core/testing",

View File

@ -25,6 +25,7 @@ ng_package(
"**/package.json",
]),
entry_point = "packages/elements/index.js",
tags = ["release-with-framework"],
deps = [
":elements",
],

View File

@ -22,6 +22,7 @@ ng_package(
name = "npm_package",
srcs = ["package.json"],
entry_point = "packages/forms/index.js",
tags = ["release-with-framework"],
deps = [
":forms",
],

View File

@ -25,6 +25,7 @@ ng_package(
"//packages/http/testing:package.json",
],
entry_point = "packages/http/index.js",
tags = ["release-with-framework"],
deps = [
":http",
"//packages/http/testing",

View File

@ -22,5 +22,9 @@ ts_library(
npm_package(
name = "npm_package",
srcs = ["package.json"],
tags = [
# TODO(alexeagle): enable release after landing #23090
# "release-with-framework",
],
deps = [":language-service"],
)

View File

@ -27,6 +27,7 @@ ng_package(
"//packages/platform-browser-dynamic/testing:package.json",
],
entry_point = "packages/platform-browser-dynamic/index.js",
tags = ["release-with-framework"],
deps = [
":platform-browser-dynamic",
"//packages/platform-browser-dynamic/testing",

View File

@ -26,6 +26,7 @@ ng_package(
"//packages/platform-browser/testing:package.json",
],
entry_point = "packages/platform-browser/index.js",
tags = ["release-with-framework"],
deps = [
":platform-browser",
"//packages/platform-browser/animations",

View File

@ -32,6 +32,7 @@ ng_package(
"//packages/platform-server/testing:package.json",
],
entry_point = "packages/platform-server/index.js",
tags = ["release-with-framework"],
deps = [
":platform-server",
"//packages/platform-server/testing",

View File

@ -24,5 +24,6 @@ ng_package(
name = "npm_package",
srcs = ["package.json"],
entry_point = "packages/platform-webworker-dynamic/index.js",
tags = ["release-with-framework"],
deps = [":platform-webworker-dynamic"],
)

View File

@ -24,6 +24,7 @@ ng_package(
name = "npm_package",
srcs = ["package.json"],
entry_point = "packages/platform-webworker/index.js",
tags = ["release-with-framework"],
deps = [
":platform-webworker",
],

View File

@ -28,6 +28,7 @@ ng_package(
"//packages/router/upgrade:package.json",
],
entry_point = "packages/router/index.js",
tags = ["release-with-framework"],
deps = [
":router",
"//packages/router/testing",

View File

@ -26,6 +26,10 @@ ng_package(
"//packages/service-worker/config:package.json",
],
entry_point = "packages/service-worker/index.js",
tags = [
# TODO(alxhub): enable release after landing #23090
# "release-with-framework",
],
deps = [
":service-worker",
"//packages/service-worker/config",

View File

@ -25,6 +25,7 @@ ng_package(
"//packages/upgrade/static:package.json",
],
entry_point = "packages/upgrade/index.js",
tags = ["release-with-framework"],
deps = [
":upgrade",
"//packages/upgrade/static",

View File

@ -1,6 +1,13 @@
#!/usr/bin/env bash
set -u -e -o pipefail
# Use for BETA and RC releases
# Publish all packages in `dist/packages-dist` to npm (as next)
(cd dist/packages-dist; for p in `ls .`; do npm publish --access public --tag next $p; done)
# Query Bazel for npm_package and ng_package rules with tags=["release-with-framework"]
for p in $(bazel query --output=label 'attr("tags", "\[.*release-with-framework.*\]", //...) intersect kind(".*_package", //...)'); do
bazel run -- $p.publish --access public --tag next
done
(cd dist/packages-dist; for p in language-service service-worker; do npm publish --access public --tag next $p; done)