fix: remove release task from nps
MODIFY
.circleci/release
.circleci/release
@@ -8,4 +8,4 @@ PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
yarn global add @dxcli/semantic-release@1 semantic-release@12
yarn install --frozen-lockfile
-yarn exec nps release
+semantic-release -e @dxcli/semantic-release

MODIFY
package-scripts.js
package-scripts.js
@@ -7,7 +7,6 @@ const {
mkdirp,
} = require('nps-utils')
const script = (script, description) => description ? {script, description} : {script}
-const hidden = script => ({script, hiddenFromHelp: true})
const _ = require('lodash')
const sh = require('shelljs')
const path = require('path')
@@ -51,6 +50,5 @@ module.exports = {
default: series.nps(...testTypes.map(t => `test.${t}`)),
..._.fromPairs(tests),
},
- release: hidden('dxcli-semantic-release'),
},
}

MODIFY
templates/package-scripts.js.ejs
templates/package-scripts.js.ejs
@@ -68,9 +68,6 @@ module.exports = {
test,
<%_ if (mocha) { _%>
mocha,
-<%_ } _%>
-<%_ if (semantic_release) { _%>
- release: 'semantic-release -e @dxcli/semantic-release',
<%_ } _%>
},
}

MODIFY
templates/scripts/release
templates/scripts/release
@@ -8,4 +8,4 @@ PATH=/usr/local/share/.config/yarn/global/node_modules/.bin:$PATH
yarn global add @dxcli/semantic-release@1 semantic-release@12
yarn install --frozen-lockfile
-yarn exec nps release
+semantic-release -e @dxcli/semantic-release

fix: remove release task from nps