npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@anastasia-labs/linear-vesting-offchain

v1.2.0

Published

https://docs.github.com/en/packages/quickstart

Downloads

79

Readme

How to create github packages

https://docs.github.com/en/packages/quickstart

Use tsup to bundle typescript

https://tsup.egoist.dev/

How to release

https://docs.github.com/en/repositories/releasing-projects-on-github/managing-releases-in-a-repository#creating-a-release

Installation

Create .npmrc file, replace TOKEN with your personal access token.

@anastasia-labs:registry=https://npm.pkg.github.com
//npm.pkg.github.com/:_authToken=TOKEN

Install package

npm install @anastasia-labs/linear-vesting-offchain

or

pnpm install @anastasia-labs/linear-vesting-offchain

References

  • Add GitHub Packages

    • https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#installing-a-package
  • Authenticate with personal access token

    • https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-npm-registry#authenticating-with-a-personal-access-token

Semantic versioning

https://semver.org/

Workflow to create a new Github package release

Here's a step-by-step guide to create a new Github package release:

  • Update the code.
  • Commit the changes.
  • Push the changes to the develop branch Github repository.
  • Check if the Continuous Integration (CI) passes. If it does, proceed to the next step. If not, address the issues before proceeding further.
  • Bump the library version based on the extent of the changes made. Here are the three options to do so:
    • For a small bug fix, run:
    pnpm version patch
    • For adding new functionality in a backward-compatible way, run:
    pnpm version minor
    • For making breaking changes to the code, run:
    pnpm version major
  • After bumping the version, go to the Github project's releases page
  • Create a new tag with the bumped version number.
  • To create a new npm package in the github organization, make sure the Node.js package CI succeeds.
  • If the CI Action fails, remove the release, tag, and commit the new changes. Then, push the changes and draft a new release.

Local Build

In the main directory

pnpm run build

Test framework

https://github.com/vitest-dev/vitest

Running Tests

pnpm test

linear-vesting-offchain

Installing sdk pacakage in local test folder

cd test
pnpm run test