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",
|
||||
],
|
||||
entry_point = "packages/animations/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
deps = [
|
||||
":animations",
|
||||
"//packages/animations/browser",
|
||||
|
|
|
@ -19,5 +19,6 @@ npm_package(
|
|||
"//packages/bazel/": "//",
|
||||
"angular/packages/bazel/": "angular/",
|
||||
},
|
||||
tags = ["release-with-framework"],
|
||||
deps = [":workspace"],
|
||||
)
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -33,5 +33,6 @@ npm_package(
|
|||
srcs = [
|
||||
"package.json",
|
||||
],
|
||||
tags = ["release-with-framework"],
|
||||
deps = [":compiler-cli"],
|
||||
)
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -25,6 +25,7 @@ ng_package(
|
|||
"**/package.json",
|
||||
]),
|
||||
entry_point = "packages/elements/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
deps = [
|
||||
":elements",
|
||||
],
|
||||
|
|
|
@ -22,6 +22,7 @@ ng_package(
|
|||
name = "npm_package",
|
||||
srcs = ["package.json"],
|
||||
entry_point = "packages/forms/index.js",
|
||||
tags = ["release-with-framework"],
|
||||
deps = [
|
||||
":forms",
|
||||
],
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"],
|
||||
)
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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"],
|
||||
)
|
||||
|
|
|
@ -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",
|
||||
],
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue