Skip to content

Commit

Permalink
Merge pull request #2 from WhoopInc/use-orb
Browse files Browse the repository at this point in the history
Use JavaScript Orb
  • Loading branch information
junyifang-whoop authored Sep 13, 2024
2 parents 4942ba8 + 67f9dc4 commit 5bf1aaa
Showing 1 changed file with 23 additions and 8 deletions.
31 changes: 23 additions & 8 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
version: 2.1

orbs:
javascript: whoop/javascript@2

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
Expand All @@ -20,10 +23,22 @@ jobs:
yarn
yarn run build
- run:
name: Publish to nexus
command: |
npm publish
- 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"

workflows:
build_and_test:
Expand Down

0 comments on commit 5bf1aaa

Please sign in to comment.