Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/animations/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/bazel/BUILD.bazel
Expand Up @@ -19,5 +19,6 @@ npm_package(
"//packages/bazel/": "//",
"angular/packages/bazel/": "angular/",
},
tags = ["release-with-framework"],
deps = [":workspace"],
)
1 change: 1 addition & 0 deletions packages/common/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/compiler-cli/BUILD.bazel
Expand Up @@ -33,5 +33,6 @@ npm_package(
srcs = [
"package.json",
],
tags = ["release-with-framework"],
deps = [":compiler-cli"],
)
1 change: 1 addition & 0 deletions packages/compiler/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/core/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/elements/BUILD.bazel
Expand Up @@ -25,6 +25,7 @@ ng_package(
"**/package.json",
]),
entry_point = "packages/elements/index.js",
tags = ["release-with-framework"],
deps = [
":elements",
],
Expand Down
1 change: 1 addition & 0 deletions packages/forms/BUILD.bazel
Expand Up @@ -22,6 +22,7 @@ ng_package(
name = "npm_package",
srcs = ["package.json"],
entry_point = "packages/forms/index.js",
tags = ["release-with-framework"],
deps = [
":forms",
],
Expand Down
1 change: 1 addition & 0 deletions packages/http/BUILD.bazel
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions packages/language-service/BUILD.bazel
Expand Up @@ -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"],
)
1 change: 1 addition & 0 deletions packages/platform-browser-dynamic/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/platform-browser/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/platform-server/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/platform-webworker-dynamic/BUILD.bazel
Expand Up @@ -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"],
)
1 change: 1 addition & 0 deletions packages/platform-webworker/BUILD.bazel
Expand Up @@ -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",
],
Expand Down
1 change: 1 addition & 0 deletions packages/router/BUILD.bazel
Expand Up @@ -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",
Expand Down
4 changes: 4 additions & 0 deletions packages/service-worker/BUILD.bazel
Expand Up @@ -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",
Expand Down
1 change: 1 addition & 0 deletions packages/upgrade/BUILD.bazel
Expand Up @@ -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",
Expand Down
9 changes: 8 additions & 1 deletion scripts/release/publish-next
@@ -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)