Skip to content

Commit 43ddfc0

Browse files
committed
build: migrate actions in .github/local-actions to new toolchain (#2940)
PR Close #2940
1 parent 05b6e91 commit 43ddfc0

File tree

20 files changed

+5344
-47064
lines changed

20 files changed

+5344
-47064
lines changed
Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,14 @@
11
# @generated
22
# Input hashes for repository rule npm_translate_lock(name = "devinfra_npm", pnpm_lock = "@//:pnpm-lock.yaml").
33
# This file should be checked into version control along with the pnpm-lock.yaml file.
4+
.github/local-actions/branch-manager/package.json=-197755049
5+
.github/local-actions/labels-sync/package.json=-805297510
6+
.github/local-actions/lock-closed/package.json=-805297510
47
.npmrc=-1406867100
58
bazel/package.json=1905073619
69
bazel/spec-bundling/test/package.json=-1269314228
710
ng-dev/package.json=1323489217
811
package.json=-1202209611
9-
pnpm-lock.yaml=1620838978
10-
pnpm-workspace.yaml=-753601685
12+
pnpm-lock.yaml=-418129773
13+
pnpm-workspace.yaml=-1504318433
1114
yarn.lock=-598328143

.github/local-actions/BUILD.bazel

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
load("//tools:defaults2.bzl", "ts_config")
2+
3+
package(default_visibility = ["//.github/local-actions:__subpackages__"])
4+
5+
ts_config(
6+
name = "tsconfig",
7+
src = "tsconfig.json",
8+
)
Lines changed: 32 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,37 @@
1-
load("//tools:defaults.bzl", "esbuild_checked_in")
1+
load("@devinfra_npm//:defs.bzl", "npm_link_all_packages")
2+
load("//tools:defaults2.bzl", "esbuild_checked_in", "ts_project")
3+
4+
package(default_visibility = ["//.github/local-actions/branch-manager:__subpackages__"])
5+
6+
npm_link_all_packages()
7+
8+
ts_project(
9+
name = "lib",
10+
srcs = glob(["lib/*.ts"]),
11+
tsconfig = "//.github/local-actions:tsconfig",
12+
deps = [
13+
"//.github/local-actions/branch-manager:node_modules/@actions/core",
14+
"//.github/local-actions/branch-manager:node_modules/@actions/github",
15+
"//.github/local-actions/branch-manager:node_modules/@octokit/rest",
16+
"//.github/local-actions/branch-manager:node_modules/@types/node",
17+
"//.github/local-actions/branch-manager:node_modules/typed-graphqlify",
18+
"//.github/local-actions/branch-manager:node_modules/undici",
19+
"//github-actions:utils_rjs",
20+
"//ng-dev/pr/common:common_rjs",
21+
"//ng-dev/pr/common/labels:labels_rjs",
22+
"//ng-dev/pr/config:config_rjs",
23+
"//ng-dev/pr/merge:merge_rjs",
24+
"//ng-dev/utils:utils_rjs",
25+
],
26+
)
227

328
esbuild_checked_in(
429
name = "main",
5-
entry_point = "//.github/local-actions/branch-manager/lib:main.ts",
6-
target = "node16",
7-
deps = [
8-
"//.github/local-actions/branch-manager/lib",
30+
srcs = [
31+
":lib_rjs",
932
],
33+
entry_point = "lib/main.ts",
34+
format = "esm",
35+
platform = "node",
36+
target = "node22",
1037
)

.github/local-actions/branch-manager/lib/BUILD.bazel

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)