Skip to content

Commit

Permalink
Remove release target for now (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvgijssel authored Oct 5, 2023
1 parent 2697777 commit ac0170a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 49 deletions.
25 changes: 0 additions & 25 deletions rules/rules_task/BUILD.bazel
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
load("@rules_task//tools:defs.bzl", "compile_pip_requirements")
load("@npm//:defs.bzl", "npm_link_all_packages")
load("@npm//:semantic-release/package_json.bzl", semantic_release_bin = "bin")
load(":defs.bzl", "cmd", "task")

package(default_visibility = ["//visibility:public"])
Expand All @@ -16,26 +14,3 @@ compile_pip_requirements(
requirements_in = "requirements.in",
requirements_txt = "requirements.txt",
)

semantic_release_bin.semantic_release_binary(
name = "semantic-release_bin",
log_level = "debug",
)

task(
name = "release",
cmds = [
cmd.shell(
cmd.executable(":semantic-release_bin"),
"$CLI_ARGS",
),
],
cwd = "$(dirname $(readlink -f $RELEASERC))",
env = {
"RELEASERC": cmd.file(".releaserc"),
"BAZEL_BINDIR": ".",
},
)

npm_link_all_packages(
)
24 changes: 0 additions & 24 deletions rules/rules_task/MODULE.bazel
Original file line number Diff line number Diff line change
Expand Up @@ -31,27 +31,3 @@ pip.parse(
)

use_repo(pip, "pip")

# ------------------------------------ rules_js ------------------------------------ #
bazel_dep(name = "aspect_rules_js", version = "1.32.6")

npm = use_extension(
"@aspect_rules_js//npm:extensions.bzl",
"npm",
)

npm.npm_translate_lock(
name = "npm",
# Need to configure link_workspace otherwise invocation from setup workspace does not work
link_workspace = "rules_task",
pnpm_lock = "//:pnpm-lock.yaml",
verify_node_modules_ignored = "//:.bazelignore",
)

use_repo(npm, "npm")

bazel_dep(name = "rules_nodejs", version = "6.0.1")

node = use_extension("@rules_nodejs//nodejs:extensions.bzl", "node")

node.toolchain(node_version = "18.17.1")

0 comments on commit ac0170a

Please sign in to comment.