https://github.com/remarkablemark/github-package-test
GitHub Package test
https://github.com/remarkablemark/github-package-test
github github-package github-packages javascript package test
Last synced: 2 months ago
JSON representation
GitHub Package test
- Host: GitHub
- URL: https://github.com/remarkablemark/github-package-test
- Owner: remarkablemark
- License: mit
- Created: 2026-02-19T22:34:20.000Z (4 months ago)
- Default Branch: master
- Last Pushed: 2026-02-28T23:23:09.000Z (3 months ago)
- Last Synced: 2026-03-01T02:18:11.889Z (3 months ago)
- Topics: github, github-package, github-packages, javascript, package, test
- Language: JavaScript
- Homepage: https://github.com/remarkablemark/github-package-test/pkgs/npm/test
- Size: 29.3 KB
- Stars: 0
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# @remarkablemark/test
📦 [GitHub Package](https://docs.github.com/packages) test:
- [npm](https://github.com/remarkablemark/github-package-test/pkgs/npm/test)
Read the [blog post](https://remarkablemark.org/blog/2026/02/28/how-to-publish-npm-github-package/).
## Prerequisites
Update `.npmrc`:
```
@remarkablemark:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=${GITHUB_TOKEN}
```
Create auth [token](https://github.com/settings/tokens) with scope `read:packages` and add it to your shell config (e.g., `.zshrc`):
```sh
export GITHUB_TOKEN=ghp_xxx
```
Or do with with [GitHub CLI](https://cli.github.com/):
```sh
gh auth refresh -h github.com -s read:packages
```
```sh
echo 'export GITHUB_TOKEN=$(gh auth token)' >> ~/.zshrc
```
## Install
Install the package:
```sh
npm install @remarkablemark/test
```
## Usage
Use the package:
```js
const { hello } = require('@remarkablemark/test');
console.log(hello()); // 'Hello, world!'
```