release(bazel): change publish-next script to publish bazel artifacts (#23097)
PR Close #23097
This commit is contained in:
parent
22cb2c9441
commit
15278784fc
@ -24,6 +24,7 @@ ng_package(
|
|||||||
"//packages/animations/browser/testing:package.json",
|
"//packages/animations/browser/testing:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/animations/index.js",
|
entry_point = "packages/animations/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":animations",
|
":animations",
|
||||||
"//packages/animations/browser",
|
"//packages/animations/browser",
|
||||||
|
@ -19,5 +19,6 @@ npm_package(
|
|||||||
"//packages/bazel/": "//",
|
"//packages/bazel/": "//",
|
||||||
"angular/packages/bazel/": "angular/",
|
"angular/packages/bazel/": "angular/",
|
||||||
},
|
},
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [":workspace"],
|
deps = [":workspace"],
|
||||||
)
|
)
|
||||||
|
@ -26,6 +26,7 @@ ng_package(
|
|||||||
"//packages/common/testing:package.json",
|
"//packages/common/testing:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/common/index.js",
|
entry_point = "packages/common/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
"//packages/common",
|
"//packages/common",
|
||||||
"//packages/common/http",
|
"//packages/common/http",
|
||||||
|
@ -33,5 +33,6 @@ npm_package(
|
|||||||
srcs = [
|
srcs = [
|
||||||
"package.json",
|
"package.json",
|
||||||
],
|
],
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [":compiler-cli"],
|
deps = [":compiler-cli"],
|
||||||
)
|
)
|
||||||
|
@ -21,6 +21,7 @@ ng_package(
|
|||||||
],
|
],
|
||||||
entry_point = "packages/compiler/compiler.js",
|
entry_point = "packages/compiler/compiler.js",
|
||||||
include_devmode_srcs = True,
|
include_devmode_srcs = True,
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":compiler",
|
":compiler",
|
||||||
"//packages/compiler/testing",
|
"//packages/compiler/testing",
|
||||||
|
@ -24,6 +24,7 @@ ng_package(
|
|||||||
"//packages/core/testing:package.json",
|
"//packages/core/testing:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/core/index.js",
|
entry_point = "packages/core/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":core",
|
":core",
|
||||||
"//packages/core/testing",
|
"//packages/core/testing",
|
||||||
|
@ -25,6 +25,7 @@ ng_package(
|
|||||||
"**/package.json",
|
"**/package.json",
|
||||||
]),
|
]),
|
||||||
entry_point = "packages/elements/index.js",
|
entry_point = "packages/elements/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":elements",
|
":elements",
|
||||||
],
|
],
|
||||||
|
@ -22,6 +22,7 @@ ng_package(
|
|||||||
name = "npm_package",
|
name = "npm_package",
|
||||||
srcs = ["package.json"],
|
srcs = ["package.json"],
|
||||||
entry_point = "packages/forms/index.js",
|
entry_point = "packages/forms/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":forms",
|
":forms",
|
||||||
],
|
],
|
||||||
|
@ -25,6 +25,7 @@ ng_package(
|
|||||||
"//packages/http/testing:package.json",
|
"//packages/http/testing:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/http/index.js",
|
entry_point = "packages/http/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":http",
|
":http",
|
||||||
"//packages/http/testing",
|
"//packages/http/testing",
|
||||||
|
@ -22,5 +22,9 @@ ts_library(
|
|||||||
npm_package(
|
npm_package(
|
||||||
name = "npm_package",
|
name = "npm_package",
|
||||||
srcs = ["package.json"],
|
srcs = ["package.json"],
|
||||||
|
tags = [
|
||||||
|
# TODO(alexeagle): enable release after landing #23090
|
||||||
|
# "release-with-framework",
|
||||||
|
],
|
||||||
deps = [":language-service"],
|
deps = [":language-service"],
|
||||||
)
|
)
|
||||||
|
@ -27,6 +27,7 @@ ng_package(
|
|||||||
"//packages/platform-browser-dynamic/testing:package.json",
|
"//packages/platform-browser-dynamic/testing:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/platform-browser-dynamic/index.js",
|
entry_point = "packages/platform-browser-dynamic/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":platform-browser-dynamic",
|
":platform-browser-dynamic",
|
||||||
"//packages/platform-browser-dynamic/testing",
|
"//packages/platform-browser-dynamic/testing",
|
||||||
|
@ -26,6 +26,7 @@ ng_package(
|
|||||||
"//packages/platform-browser/testing:package.json",
|
"//packages/platform-browser/testing:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/platform-browser/index.js",
|
entry_point = "packages/platform-browser/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":platform-browser",
|
":platform-browser",
|
||||||
"//packages/platform-browser/animations",
|
"//packages/platform-browser/animations",
|
||||||
|
@ -32,6 +32,7 @@ ng_package(
|
|||||||
"//packages/platform-server/testing:package.json",
|
"//packages/platform-server/testing:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/platform-server/index.js",
|
entry_point = "packages/platform-server/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":platform-server",
|
":platform-server",
|
||||||
"//packages/platform-server/testing",
|
"//packages/platform-server/testing",
|
||||||
|
@ -24,5 +24,6 @@ ng_package(
|
|||||||
name = "npm_package",
|
name = "npm_package",
|
||||||
srcs = ["package.json"],
|
srcs = ["package.json"],
|
||||||
entry_point = "packages/platform-webworker-dynamic/index.js",
|
entry_point = "packages/platform-webworker-dynamic/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [":platform-webworker-dynamic"],
|
deps = [":platform-webworker-dynamic"],
|
||||||
)
|
)
|
||||||
|
@ -24,6 +24,7 @@ ng_package(
|
|||||||
name = "npm_package",
|
name = "npm_package",
|
||||||
srcs = ["package.json"],
|
srcs = ["package.json"],
|
||||||
entry_point = "packages/platform-webworker/index.js",
|
entry_point = "packages/platform-webworker/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":platform-webworker",
|
":platform-webworker",
|
||||||
],
|
],
|
||||||
|
@ -28,6 +28,7 @@ ng_package(
|
|||||||
"//packages/router/upgrade:package.json",
|
"//packages/router/upgrade:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/router/index.js",
|
entry_point = "packages/router/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":router",
|
":router",
|
||||||
"//packages/router/testing",
|
"//packages/router/testing",
|
||||||
|
@ -26,6 +26,10 @@ ng_package(
|
|||||||
"//packages/service-worker/config:package.json",
|
"//packages/service-worker/config:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/service-worker/index.js",
|
entry_point = "packages/service-worker/index.js",
|
||||||
|
tags = [
|
||||||
|
# TODO(alxhub): enable release after landing #23090
|
||||||
|
# "release-with-framework",
|
||||||
|
],
|
||||||
deps = [
|
deps = [
|
||||||
":service-worker",
|
":service-worker",
|
||||||
"//packages/service-worker/config",
|
"//packages/service-worker/config",
|
||||||
|
@ -25,6 +25,7 @@ ng_package(
|
|||||||
"//packages/upgrade/static:package.json",
|
"//packages/upgrade/static:package.json",
|
||||||
],
|
],
|
||||||
entry_point = "packages/upgrade/index.js",
|
entry_point = "packages/upgrade/index.js",
|
||||||
|
tags = ["release-with-framework"],
|
||||||
deps = [
|
deps = [
|
||||||
":upgrade",
|
":upgrade",
|
||||||
"//packages/upgrade/static",
|
"//packages/upgrade/static",
|
||||||
|
@ -1,6 +1,13 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
|
|
||||||
|
set -u -e -o pipefail
|
||||||
|
|
||||||
# Use for BETA and RC releases
|
# Use for BETA and RC releases
|
||||||
# Publish all packages in `dist/packages-dist` to npm (as next)
|
# 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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user