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

Test #989

Closed
wants to merge 9 commits into from
Closed

Test #989

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
35 changes: 35 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
version: 2.1

orbs:
javascript: whoop/javascript@dev:alpha

jobs:
build:
executor:
name: javascript/docker
executor_docker_image: cimg/node:14.10.1
working_directory: ~/js-buy-sdk

steps:
- checkout

- javascript/npm-nexus-auth:
nexus_repository_name: "npm-group"

- run:
name: Build
command: |
yarn
yarn run build

- javascript/publish-to-nexus:
nexus_repository_name: "npm-private"

- javascript/publish-to-codeartifact:
code_artifact_repository_name: "whoop-npm"

workflows:
build_and_test:
jobs:
- build:
context: environment-variables
13 changes: 13 additions & 0 deletions npm-login.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Encoding token from username and pw
ENCODED_TOKEN=$(echo -n "$NEXUS_RM_USERNAME":"$NEXUS_RM_PASSWORD" | openssl base64)

# Setting .npmrc
cat > ~/.npmrc <<EOL
//https://nexus.qa.whoop.com/repository/:_authToken=
always_auth=true
registry=https://nexus.qa.whoop.com/repository/npm-group/
user=$NEXUS_RM_USERNAME
_auth=$ENCODED_TOKEN
EOL
7 changes: 3 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
{
"name": "shopify-buy",
"version": "2.20.0",
"name": "@whoop/shopify-buy",
"version": "2.20.0-whoop.0.0.2-beta1",
"description": "The JS Buy SDK is a lightweight library that allows you to build ecommerce into any website. It is based on Shopify's API and provides the ability to retrieve products and collections from your shop, add products to a cart, and checkout.",
"main": "index.js",
"jsnext:main": "index.es.js",
"repository": "[email protected]:Shopify/js-buy-sdk.git",
"publishConfig": {
"access": "public",
"@shopify:registry": "https://registry.npmjs.org/"
"registry": "https://nexus.qa.whoop.com/repository/npm-private"
},
"scripts": {
"prepublish": "yarn run build",
Expand Down
1 change: 1 addition & 0 deletions src/graphql/VariantFragment.graphql
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ fragment VariantFragment on ProductVariant {
weight
available: availableForSale
sku
quantityAvailable
compareAtPrice {
amount
currencyCode
Expand Down
Loading