Code Monkey home page Code Monkey logo

Comments (6)

filoxo avatar filoxo commented on June 10, 2024

Do tags correspond to the version in package.json? I think managing deployments based on that number would be ideal. Tags may be a proxy for that. That way we still merge to master as needed, bump the version, and not trigger unintentional builds (eg. make a change to the README, no need not deploy).

from single-spa-inspector.

frehner avatar frehner commented on June 10, 2024

It looks like we can trigger an action on a tag change https://help.github.com/en/articles/workflow-syntax-for-github-actions#onpushpull_requestbranchestags

doesn't appear to be any support for looking at the contents of package.json, at least at the moment. I could be wrong though.

from single-spa-inspector.

filoxo avatar filoxo commented on June 10, 2024

Tag is probably ok, I think npm version also creates a new tag so that should stay in lock-step. I looked around and didn't find any ready-made actions for deploying based on npm version.

from single-spa-inspector.

filoxo avatar filoxo commented on June 10, 2024

I just encountered an issue with basing deployments on tags, while at work. We use yarn version (though npm behaves the same so it should apply as well) to update the version numbers in package.json and yarn.lock, and this command also creates a git tag. We push those updates as part of a pull request and so the tag has a possibility of deploying a version that shouldn't yet go out.

from single-spa-inspector.

joeldenning avatar joeldenning commented on June 10, 2024

The way I've usually seen this done in open source projects is to only call yarn version (or yarn publish) on the master branch instead of on pull requested branches. Generally the pull requester doesn't update the version - that is done by the maintainer who is releasing a new version.

For single-spa-inspector, I think the above workflow would work well. Am open to whatever you and Anthony think would be easiest though for maintaining the project.

from single-spa-inspector.

filoxo avatar filoxo commented on June 10, 2024

Yea as long as we can commit directly to master, that would work (my company doesn't allow that for good reasons too).

from single-spa-inspector.

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.