Skip to content

Commit 22b6dea

Browse files
authored
ci: fix release workflow (#1758)
1 parent ae6bbe3 commit 22b6dea

File tree

5 files changed

+23
-164
lines changed

5 files changed

+23
-164
lines changed

.husky/commit-msg

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,5 @@
11
#!/usr/bin/env sh
22
. "$(dirname -- "$0")/_/husky.sh"
33

4-
export NVM_DIR="$HOME/.nvm/nvm.sh"
54

6-
if [ -f "$NVM_DIR" ]; then
7-
. "$(dirname $NVM_DIR)/nvm.sh"
8-
9-
export NVM_DIR="$HOME/.nvm"
10-
a=$(nvm ls | grep 'node')
11-
b=${a#*(-> }
12-
v=${b%%[)| ]*}
13-
14-
export PATH="$NVM_DIR/versions/node/$v/bin:$PATH"
15-
fi
16-
17-
npx --no -- commitlint --edit
5+
npm run commitlint ${1}

.npmrc

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
legacy-peer-deps=true
22
no-fund=true
33
no-audit=true
4+
registry=https://registry.npmjs.org/

nxrelease.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ module.exports = {
1919
outputPath: 'dist/packages/${PROJECT_NAME}',
2020
tagFormat: '${PROJECT_NAME}-${VERSION}',
2121
commitMessage:
22-
'chore(release): Release ${PROJECT_NAME} v${nextRelease.version} [skip ci]',
22+
'chore(release): release ${PROJECT_NAME} v${nextRelease.version} [skip ci]',
2323
branches: [
2424
{
2525
name: 'main',

package-lock.json

+17-148
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,8 @@
2929
"extract-i18n:website": "nx run website:extract-i18n",
3030
"postinstall": "npm run sync:types:webpack",
3131
"sync:types:webpack": "cp -rf ./webpack/* ./node_modules/webpack",
32-
"sync:pullMFTypes": "concurrently \"node ./packages/enhanced/pullts.js\""
32+
"sync:pullMFTypes": "concurrently \"node ./packages/enhanced/pullts.js\"",
33+
"commitlint": "commitlint --edit"
3334
},
3435
"dependencies": {
3536
"adm-zip": "0.5.10",
@@ -150,7 +151,7 @@
150151
"highlight.js": "10.7.3",
151152
"html-webpack-plugin": "5.5.3",
152153
"husky": "8.0.3",
153-
"inquirer": "^9.2.12",
154+
"inquirer": "8.2.6",
154155
"jest": "29.7.0",
155156
"jest-environment-jsdom": "29.7.0",
156157
"jest-environment-node": "29.7.0",

0 commit comments

Comments
 (0)