From 37ac96bce27c4f128b0d6585916dfbbc6ebbf630 Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Wed, 4 Sep 2024 12:47:47 -0400 Subject: [PATCH 01/11] use orb --- .circleci/config.yml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 68ffeb8af..b21e32290 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,18 +1,20 @@ version: 2.1 +orbs: + javascript: whoop/javascript@dev:alpha + jobs: build: - docker: - - image: circleci/node:14.10.1 - - working_directory: ~/js-buy-sdk + executor: + name: javascript/docker + executor_docker_image: cimg/node:14.10.1 + working_directory: ~/js-buy-sdk steps: - checkout - - run: - name: Log into nexus npm registry - command: ./npm-login.sh + - javascript/npm-nexus-auth: + nexus_repository_name: "npm-group" - run: name: Build @@ -20,10 +22,11 @@ jobs: yarn yarn run build - - run: - name: Publish to nexus - command: | - npm publish + - javascript/publish-to-nexus: + nexus_repository_name: "npm-private" + + - javascript/publish-to-codeartifact: + code_artifact_repository_name: "whoop-npm" workflows: build_and_test: From c1f39cee59e431579c0c1ffe5c0c172a1adf0f0f Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Mon, 9 Sep 2024 16:40:15 -0400 Subject: [PATCH 02/11] bump version --- .circleci/config.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index b21e32290..560c1f7c1 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,9 +22,20 @@ jobs: yarn yarn run build + - javascript/bump-package-version: + base_package_version: "2.20" + - javascript/publish-to-nexus: nexus_repository_name: "npm-private" + - javascript/change-publish-registry-to-codeartifact: + code_artifact_repository_name: "whoop-npm" + + - javascript/authenticate-with-codeartifact + + - javascript/npm-codeartifact-auth: + code_artifact_repository_name: "whoop-npm" + - javascript/publish-to-codeartifact: code_artifact_repository_name: "whoop-npm" From 70419c516fed1fe7f1442a4d9d45eb99e3f09151 Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Mon, 9 Sep 2024 16:58:19 -0400 Subject: [PATCH 03/11] authenticate with npm-private repo on nexus --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 560c1f7c1..e7ecac884 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,6 +25,9 @@ jobs: - javascript/bump-package-version: base_package_version: "2.20" + - javascript/npm-nexus-auth: + nexus_repository_name: "npm-private" + - javascript/publish-to-nexus: nexus_repository_name: "npm-private" From 95f9a0ea24d5e5713ec10bfd7b253846f3e4d1dc Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Mon, 9 Sep 2024 16:59:22 -0400 Subject: [PATCH 04/11] use orb version 2 --- .circleci/config.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index e7ecac884..20679fb59 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2.1 orbs: - javascript: whoop/javascript@dev:alpha + javascript: whoop/javascript@2 jobs: build: From b4f57d9d4d7d605f7a46d0769a10867aff81f322 Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Tue, 10 Sep 2024 09:34:45 -0400 Subject: [PATCH 05/11] remove extra auth step --- .circleci/config.yml | 3 --- 1 file changed, 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 20679fb59..0b9c21905 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,9 +25,6 @@ jobs: - javascript/bump-package-version: base_package_version: "2.20" - - javascript/npm-nexus-auth: - nexus_repository_name: "npm-private" - - javascript/publish-to-nexus: nexus_repository_name: "npm-private" From a29579050abe6c6f8be43c6e59f58f02e973c762 Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Tue, 10 Sep 2024 10:01:17 -0400 Subject: [PATCH 06/11] debug --- .circleci/config.yml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index 0b9c21905..f296ddbf6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -25,6 +25,16 @@ jobs: - javascript/bump-package-version: base_package_version: "2.20" + - run: + name: cat + command: | + cat package.json + + - run: + name: npm config ls -l + command: | + npm config ls -l + - javascript/publish-to-nexus: nexus_repository_name: "npm-private" From 0fe63dbdbba4b8e75cecd4b4e76bb646a2186f59 Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Tue, 10 Sep 2024 10:05:52 -0400 Subject: [PATCH 07/11] debug --- .circleci/config.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index f296ddbf6..feaed47d2 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -22,6 +22,9 @@ jobs: yarn yarn run build + - javascript/npm-nexus-auth: + nexus_repository_name: "npm-private" + - javascript/bump-package-version: base_package_version: "2.20" From 15c693e591abd5a2ae4f913c6e1cce6f0b2db3b5 Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Thu, 12 Sep 2024 14:51:14 -0400 Subject: [PATCH 08/11] use login script --- .circleci/config.yml | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index feaed47d2..31116f7f5 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2.1 orbs: - javascript: whoop/javascript@2 + javascript: whoop/javascript@dev:alpha jobs: build: @@ -13,8 +13,9 @@ jobs: steps: - checkout - - javascript/npm-nexus-auth: - nexus_repository_name: "npm-group" + - run: + name: Log into nexus npm registry + command: ./npm-login.sh - run: name: Build @@ -22,9 +23,6 @@ jobs: yarn yarn run build - - javascript/npm-nexus-auth: - nexus_repository_name: "npm-private" - - javascript/bump-package-version: base_package_version: "2.20" From 4d35dab38c89a2742a907b6399fefcb2ad7060cf Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Thu, 12 Sep 2024 15:25:00 -0400 Subject: [PATCH 09/11] use updated npm nexus auth cmd --- .circleci/config.yml | 14 +++++--------- 1 file changed, 5 insertions(+), 9 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 31116f7f5..e51f6d4a6 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -13,10 +13,11 @@ jobs: steps: - checkout - - run: - name: Log into nexus npm registry - command: ./npm-login.sh - +# - run: +# name: Log into nexus npm registry +# command: ./npm-login.sh + - javascript/npm-nexus-auth: + nexus_repository_name: "npm-group" - run: name: Build command: | @@ -26,11 +27,6 @@ jobs: - javascript/bump-package-version: base_package_version: "2.20" - - run: - name: cat - command: | - cat package.json - - run: name: npm config ls -l command: | From 199801148b3d9dc96768ed4acd9b11f9572f1aba Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Thu, 12 Sep 2024 16:10:09 -0400 Subject: [PATCH 10/11] print npm version --- .circleci/config.yml | 2 ++ 1 file changed, 2 insertions(+) diff --git a/.circleci/config.yml b/.circleci/config.yml index e51f6d4a6..6059c84a0 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -18,6 +18,7 @@ jobs: # command: ./npm-login.sh - javascript/npm-nexus-auth: nexus_repository_name: "npm-group" + - run: name: Build command: | @@ -30,6 +31,7 @@ jobs: - run: name: npm config ls -l command: | + npm --version npm config ls -l - javascript/publish-to-nexus: From 67f9dc4d6fb2c96a284ed90a1b0492ed02f4828b Mon Sep 17 00:00:00 2001 From: Junyi Fang Date: Thu, 12 Sep 2024 16:46:27 -0400 Subject: [PATCH 11/11] use original auth, use prod orb version --- .circleci/config.yml | 16 ++++------------ 1 file changed, 4 insertions(+), 12 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index 6059c84a0..ee36c0293 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -1,7 +1,7 @@ version: 2.1 orbs: - javascript: whoop/javascript@dev:alpha + javascript: whoop/javascript@2 jobs: build: @@ -13,11 +13,9 @@ jobs: steps: - checkout -# - run: -# name: Log into nexus npm registry -# command: ./npm-login.sh - - javascript/npm-nexus-auth: - nexus_repository_name: "npm-group" + - run: + name: Log into nexus npm registry + command: ./npm-login.sh - run: name: Build @@ -28,12 +26,6 @@ jobs: - javascript/bump-package-version: base_package_version: "2.20" - - run: - name: npm config ls -l - command: | - npm --version - npm config ls -l - - javascript/publish-to-nexus: nexus_repository_name: "npm-private"