Installing Web Components
Installing Packages from GitHub Package Registry
The web components for Gift Card Market are available as npm packages.
Note that npm does not support anonymous access to GitHub Packages — a GitHub PAT (classic) is required for public packages.
Setup
Create a .npmrc file in your project root:
@gift-card-market:registry=https://npm.pkg.github.com //npm.pkg.github.com/:_authToken=GITHUB_TOKEN
Add .npmrc to .gitignore to avoid committing the token, or store it in ~/.npmrc globally.
PAT Requirements
- Classic PAT with
read:packagesscope is sufficient for public packages
Installing
npm install @gift-card-market/PACKAGE_NAME