poetapp / poet-js

Po.et JS is an small library that provides methods to easily create and sign Po.et Claims.
https://www.npmjs.com/package/@po.et/poet-js
MIT License
52 stars 4 forks source link

Sync package.json version with release version #189

Closed geoffturk closed 6 years ago

geoffturk commented 6 years ago

Current release is 5.0.7 but package.json still shows 1.1.0.

@WesleyCharlesBlake @warrenv Is this a missed setting for the semver setup?

warrenv commented 6 years ago

I believe @wzalazar said this field does not get updated by semantic release. I'll look into it some more.

wzalazar commented 6 years ago

@warrenv it's possible to sync the version of package.json when we launch a new version. I tested it last week. We have to create a file called .releaserc.json

{
  "verifyConditions": ["@semantic-release/npm", "@semantic-release/git"],
  "prepare": [
    "@semantic-release/npm",
    {
      "path": "@semantic-release/git",
      "assets": ["package.json", "package-lock.json"],
      "message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
    }
  ],
  "publish": ["@semantic-release/npm", "@semantic-release/github"]
}

also, you need to install as local dependencies these packages

npm run i --save-dev @semantic-release/git
npm run i --save-dev @semantic-release/github
npm run i --save-dev @semantic-release/npm
poet-ci commented 6 years ago

:tada: This issue has been resolved in version 5.1.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: