Giter Site home page Giter Site logo

Comments (3)

LukasLohoff avatar LukasLohoff commented on June 15, 2024

Right now the npm release script doesn't work at all. It fails with

  ✔ Prerequisite check
  ✔ Git
  ↓ Cleanup [skipped]
  ✔ Prerequisite check
  ✔ Git
  ↓ Cleanup [skipped]
  ✔ Installing dependencies using npm
  ✔ Running tests using npm
  ✔ Bumping version using npm
  ✖ Publishing package using npm
    → The project was rolled back to its previous state.
    Pushing tags
    Creating release draft on GitHub

✖ Error publishing package:
Command failed with exit code 1: npm publish dist

To do a manual release we currently have to:

  • make sure all merge request are merged
  • run npm i and make sure the working tree is clean
  • bump the version in package.json and commit & push the changes
  • draft a new release on https://github.com/terrestris/BasiGX/releases
  • run npm run build
  • make sure the working tree is clean
  • check the version in dist/package.json, it should match the newly released version
  • run npm publish

from basigx.

marcjansen avatar marcjansen commented on June 15, 2024

We should release a new version anyhow, so we cam revisit hiw this is right now.

from basigx.

simonseyock avatar simonseyock commented on June 15, 2024

The problem was that first the package was built to dist and then the current package.json was copied to dist. Afterwards the version bump was performed in the original package.json and in the end np tried to publish with the old one.

I fixed this with:

"postversion": "cp package.json dist/",

from basigx.

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.