Skip to content

Instantly share code, notes, and snippets.

View stuft2's full-sized avatar

Spencer Tuft stuft2

View GitHub Profile

Installing Scoped, Internal or Private NPM Packages from GitHub's Package Registry

If you're trying to install a scoped, internal or private library and you run into authentication or not found errors, please continue reading:

Package not found error while installing

Follow the GitHub docs on installing packages from GPR. To install private or internal packages in a GitHub workflow, you'll need to add a GitHub Action Secret to the repository. Organizations that publish packages from multiple repos should provide an organization-level access token and share that token among repos that need to install other internal or private packages within the organization. Organization secrets can be shared with specific repos by an organization admin.

Installing from a single private or internal source

To configure NPM to instal

@stuft2
stuft2 / ts-unit-test.md
Last active March 26, 2021 19:13
Unit Testing with TypeScript

Unit Testing with TypeScript

Setting up Unit Tests with TypeScript is sometimes less than intuitive. My aim here is to present the pros and cons of using Typescript and to detail how simple it is to set up typescript unit tests with Jest and Mocha.


So, Why TypeScript?