📦 GitHub Package test:
Read the blog post.
Update .npmrc:
@remarkablemark:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
Create auth token with scope read:packages and add it to your shell config (e.g., .zshrc):
export GITHUB_TOKEN=ghp_xxxOr do with with GitHub CLI:
gh auth refresh -h github.com -s read:packagesecho'export GITHUB_TOKEN=$(gh auth token)'>>~/.zshrcInstall the package:
npm install @remarkablemark/testUse the package:
const{ hello }=require('@remarkablemark/test');console.log(hello());// 'Hello, world!'