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

add workflow to build and deploy typescript declarations #131

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

cgsdev0
Copy link
Contributor

@cgsdev0 cgsdev0 commented Mar 4, 2023

I moved my type generation code out of my personal project and into a github action so that it can be easily automated here. You can see a sample of the generated typescript declarations:

https://cdn.jsdelivr.net/npm/[email protected]/index.d.ts

Testing

  1. I tested this action in a separate repo
  2. I deployed the package to npm
  3. I ported my project to use the live npm package

TODO

  • add a README.md to npm-types/ (shows up on the npm page)
  • set up a NPM_TOKEN secret on this repo
  • add whoever's token that is to the maintainer list on npm
  • somehow we need to bump the version in package.json or npm will reject subsequent deploys

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

Successfully merging this pull request may close these issues.

1 participant