Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create NPM package #102

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Create NPM package #102

wants to merge 16 commits into from

Conversation

6nv
Copy link
Contributor

@6nv 6nv commented Dec 10, 2024

And some workflow updates. Should be tested.

@6nv
Copy link
Contributor Author

6nv commented Dec 10, 2024

I reverted everything back to its original state and the workflow still doesn't pass...

I'll just finish writing what I would suggest, assuming the rest of the workflow will be updated to a working state.

@6nv
Copy link
Contributor Author

6nv commented Dec 10, 2024

How to setup, first-time:

  1. Create an account on npm, and generate a publisher token.
  2. Add that token as a Github secret in this repository, call it NPM_TOKEN
  3. This workflow will attempt to publish to the npm registry
  4. Make sure to increment the version number in package.json to publish, or it will skip that step

How to install the package:

After it has been published to the registry, users can install it via npm i psychrolib and then use the package normally in their node project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

1 participant