Comments (7)
@danielsitnik something like this?
If you need to run some tests before publishing, this might be a good example as well.
Note that these will only publish to NPM when the version specified in package.json
is increased and that change is pushed to either main
or master
branches, but I suspect you can configure the action even further.
from codedoc.
this looks pretty strange ... will take a look over the weekend.
from codedoc.
@loreanvictor I managed to make it work!
The problem was that I was testing the package with npm link
and I think somehow it messes up the module resolution.
I tried a different approach, doing npm pack
and then npm install
pointing directly to the generated tgz file, and this did the trick!
The plugin has been published to NPM and is ready to use!
https://www.npmjs.com/package/codedoc-mermaid-plugin
from codedoc.
Ahhh yes yes! There are some Github actions for publishing to NPM.
I did add one but it was being triggered on new releases, I just need to tweak it to publish when I merge to the main
branch.
from codedoc.
Have you automated this process? Is so, I would to look at it.
from codedoc.
Have you automated this process? Is so, I would to look at it.
Which process do you mean?
from codedoc.
I mean the process of publishing the NPM package.
For example, I am the maintainer of Elmish.WPF. To publish a new NuGet package, I follow these steps. Essentially, I change the version and push to master
. Then this workflow creates a NuGet package with that version and publishes it to nuget.org.
Do you have a GitHub workflow that automatically publishes a new NPM package for you?
from codedoc.
Related Issues (20)
- The build process on gh-actions omits terminal output colors HOT 2
- Theme assets broken when hosted on GitLab Pages HOT 7
- New release with ansi_up fix HOT 4
- Hooking codedoc's router to run code on page change HOT 7
- Search shortcut (CMD+F / ctrl+F) displays the modal n times
- enhance the underline code block feature to support more languages HOT 2
- support info underlines in codeblocks
- update set-value to a non-vulnerable version
- Support RTL HOT 1
- decreasing the width-size of TOC HOT 2
- Ability to copy multiple lines from codeblocks HOT 7
- Running Codedoc as a container in Raspberry Pi
- GitHub Pages deployment failure after succeeding HOT 3
- Local build not working: TypeError: merge is not a function HOT 4
- Integrated Search missing HOT 2
- Update marked to 4.0.10 to avoid CVE-2022-21680 HOT 1
- Build not working: Non-string value passed to `ts.resolveTypeReferenceDirective` HOT 1
- Pre-build plugin HOT 1
- github action failure HOT 5
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from codedoc.