-
Notifications
You must be signed in to change notification settings - Fork 0
Initiate a Shared Library #2
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
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good. Thanks.
Just one question: I see that we run test in the workflow, but only on release
, right?. Shouldn't we make them run with every change?
@nikzaugg yep, totally missed that! thanks for the review! |
@nikzaugg Adapted the code to test on every |
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice, thanks.
* Initiate a Shared Library (#2) * Initialize new typescript lib * Migrate code and tests for validate and util * Add an initial workflow for NPM package publishing * Perform husky upgrade * add some commands to README * Try build on push * Fix: Failing tests due to coverage * Update package name * Add installation instructions * Only publish on release (we can also publish from CLI) * Test on all push events but only deploy a new release on the release-created event * Fix: Ensure that the testing step also uses the Github Package Registry * Use Github Package Registry only for the kwizapp scope * Add NODE_AUTH_TOKEN * 📦 Bump package versions to v1.0.0 (#54) * ⬆️ Bump package to v1.0.1 (#55) Co-authored-by: Roland Schläfli <rolandschlaefli@gmail.com>
Description
This PR sets up an initial version of a shared NPM package/library.
The library code gets built and pushed to our Github Package Registry, from which we can then install it using NPM.
Related Issues
Closes #1
Checklist