From e4d3ad4fd213d6c1bea43f13d6a1202289448252 Mon Sep 17 00:00:00 2001 From: Michiel Borkent Date: Sun, 12 Jun 2022 21:18:54 +0200 Subject: [PATCH] fix build --- .circleci/config.yml | 17 +++++++++++------ bb.edn | 8 ++------ 2 files changed, 13 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e4566d69..2b86d7d0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -33,15 +33,20 @@ jobs: name: Run Node tests command: | node -v + npm -v bb ci:test - # - run: - # name: Run build tests - # command: | - # node -v - # bb ci:test-build + - run: + name: Run build tests + command: | + node -v + bb ci:test-build - run: name: Authenticate with registry - command: echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc + command: | + echo "//registry.npmjs.org/:_authToken=$NPM_TOKEN" > ~/repo/.npmrc + echo "registry=https://registry.npmjs.org/" >> ~/repo/.npmrc + echo "@babashka:registry=https://registry.npmjs.org/" >> ~/repo/.npmrc + cp ~/repo/.npmrc ~/repo/ext/nbb-prismatic-schema - run: bb ci:publish - save_cache: paths: diff --git a/bb.edn b/bb.edn index 62a17282..6f2fd8ec 100644 --- a/bb.edn +++ b/bb.edn @@ -108,10 +108,6 @@ (binding [*test* false] (run 'clean) (run 'release) - (shell "npm publish --access public") - (spit ".npmrc" - (str "//registry.npmjs.org/:_authToken=" - (System/getenv "NPM_TOKEN") - " --scope=@babashka")) - (shell {:dir "ext/nbb-prismatic-schema"} "npm publish --access public"))) + (shell {:dir "ext/nbb-prismatic-schema"} "npm publish --access public") + (shell "npm publish --access public"))) (println "Skipping release."))}}}