Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions .build/tasks.clj
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
(ns tasks
(:require [babashka.tasks :refer [clojure run shell]]))
(:require [babashka.tasks :refer [run shell]]))

(defn publish
"Publish to clojars and npm, then push."
Expand All @@ -8,7 +8,8 @@
[{:keys [bump]}]
(when bump
(run 'bump-release))
(clojure "-T:build deploy")
;; loaded after bump-release, so build reads the new version
((requiring-resolve 'build/deploy) {})
(run 'npm-publish)
;; bump-release pushes the tag, the commit it points at needs this
(shell "git push"))
11 changes: 3 additions & 8 deletions bb.edn
Original file line number Diff line number Diff line change
Expand Up @@ -69,11 +69,6 @@
(shell "npm publish"))}

publish {:doc "Publish to clojars and npm, then push"
:exec-fn tasks/publish}

deploy {:doc "Build the jar and deploy it to Clojars, all in bb"
:extra-paths ["."]
:extra-deps {io.github.clojure/tools.build {:mvn/version "0.10.14"}
io.github.babashka/deps-deploy {:mvn/version "0.0.1"}}
:requires ([build])
:task (build/deploy {})}}}
:extra-paths ["."]
:extra-deps {io.github.babashka/deps-deploy {:mvn/version "0.0.1"}}
:exec-fn tasks/publish}}}
7 changes: 0 additions & 7 deletions deps.edn
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,6 @@
:main-opts ["-m" "babashka.cli.exec"]
:exec-fn babashka.test-runner/test #_cognitect.test-runner.api/test}

:build ;; added by neil
{:deps {io.github.clojure/tools.build {:mvn/version "0.10.14"}
io.github.babashka/deps-deploy {:mvn/version "0.0.1"}}
:extra-paths ["." ".build"]
:ns-default build
:main-opts ["-m" "babashka.cli.exec"]}

:clj-1.10 {:extra-deps {org.clojure/clojure {:mvn/version "1.10.3"}}}
:clj-1.11 {:extra-deps {org.clojure/clojure {:mvn/version "1.11.4"}}}
:clj-1.12 {:extra-deps {org.clojure/clojure {:mvn/version "1.12.5"}}}
Expand Down