Skip to content

remarkablemark/github-package-test

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

@remarkablemark/test

📦 GitHub Package test:

Prerequisites

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_xxx

Or do with with GitHub CLI:

gh auth refresh -h github.com -s read:packages
echo 'export GITHUB_TOKEN=$(gh auth token)' >> ~/.zshrc

Install

Install the package:

npm install @remarkablemark/test

Usage

Use the package:

const { hello } = require('@remarkablemark/test');

console.log(hello()); // 'Hello, world!'