Giter VIP home page Giter VIP logo

Comments (7)

loreanvictor avatar loreanvictor commented on May 29, 2024 2

@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.

loreanvictor avatar loreanvictor commented on May 29, 2024 1

this looks pretty strange ... will take a look over the weekend.

from codedoc.

danielsitnik avatar danielsitnik commented on May 29, 2024 1

@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.

danielsitnik avatar danielsitnik commented on May 29, 2024 1

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.

TysonMN avatar TysonMN commented on May 29, 2024

Have you automated this process? Is so, I would to look at it.

from codedoc.

danielsitnik avatar danielsitnik commented on May 29, 2024

Have you automated this process? Is so, I would to look at it.

Which process do you mean?

from codedoc.

TysonMN avatar TysonMN commented on May 29, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.