ct-common-tools
v2.3.5
Published
npm module for commercetools
Downloads
255
Readme
Step 1: Install Dependencies
Navigate to the ct-common-tools directory and install the necessary dependencies using Yarn:
cd ct-common-tools yarn
Step 2: Login to NPM
Login to NPM with the appropriate scope and registry:
- the --scope should match the name in package.json
npm login --scope=@USERNAME --auth-type=legacy --registry=https://npm.pkg.github.com
Step 3: Configure package.json
Add the repository and publish configuration to your package.json file:
"repository": "https://github.com/path/to/your/repository.git", "publishConfig": { "registry": "https://npm.pkg.github.com" },
Step 4: Publish the Package
Environment Variables The following environment variables should be set in your project to ensure proper configuration and functionality:
DEPLOYMENT_ENVIRONMENT - The deployment environment (e.g., development, production, local). BRAND - The brand associated with the deployment. FOUNDRY_AUTH_USERNAME - The username for Foundry authentication. FOUNDRY_AUTH_PASSWORD - The password for Foundry authentication. FOUNDRY_AUTH_SALT - The salt used in Foundry authentication. FOUNDRY_ENDPOINT - The endpoint for Foundry API. FOUNDRY_EXTENSION_VERSION - The version of the Foundry extension being used.