Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use JavaScript Orb #2

Merged
merged 11 commits into from
Sep 13, 2024
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
Loading