Skip to content

Commit 047fbed

Browse files
committed
fix: remove version update commit step from release workflow
1 parent 8c74241 commit 047fbed

File tree

2 files changed

+87
-44
lines changed

2 files changed

+87
-44
lines changed

.github/workflows/release.yml

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,6 @@ jobs:
4343
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4444
run: npx semantic-release
4545

46-
- name: Commit version update
47-
run: |
48-
git add package.json
49-
git commit -m "chore: update package.json version [skip ci]" || echo "No version changes to commit"
50-
git push origin main || echo "No changes to push"
51-
5246
- name: Stash prepack changes
5347
run: |
5448
git stash push -m "Stashing prepack changes" || echo "No prepack changes to stash"

package.json

Lines changed: 87 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,39 +1,88 @@
11
{
2-
"version": "1.3.0",
3-
"name": "modular-cli-menu",
4-
"description": "",
5-
"keywords": [
6-
"nodejs",
7-
"cli",
8-
"modular",
9-
"command-line",
10-
"menu",
11-
"inquirer ",
12-
"terminal"
13-
],
14-
"author": "Loris Salvi",
15-
"license": "MIT",
16-
"homepage": "https://github.com/BlorisL/modular-cli-menu/blob/main/README.md",
17-
"repository": {
18-
"type": "git",
19-
"url": "https://github.com/blorisl/modular-cli-menu.git"
20-
},
21-
"types": "./dist/types.d.ts",
22-
"main": "./dist/menu.mjs",
23-
"module": "./dist/menu.mjs",
24-
"exports": {
25-
"import": {
26-
"types": "./dist/menu.d.ts",
27-
"default": "./dist/menu.mjs"
28-
}
29-
},
30-
"bin": {
31-
"modular-cli-menu": "./dist/menu.mjs"
32-
},
33-
"files": [
34-
"package.json",
35-
"dist",
36-
"README.md",
37-
"LICENSE"
38-
]
39-
}
2+
"version": "1.2.3",
3+
"name": "modular-cli-menu",
4+
"description": "",
5+
"keywords": [
6+
"nodejs",
7+
"cli",
8+
"modular",
9+
"command-line",
10+
"menu",
11+
"inquirer ",
12+
"terminal"
13+
],
14+
"author": "Loris Salvi",
15+
"license": "MIT",
16+
"homepage": "https://github.com/BlorisL/modular-cli-menu/blob/main/README.md",
17+
"repository": {
18+
"type": "git",
19+
"url": "https://github.com/blorisl/modular-cli-menu.git"
20+
},
21+
"dependencies": {
22+
"@inquirer/checkbox": "^4.1.6",
23+
"@inquirer/input": "^4.1.10",
24+
"@inquirer/select": "^4.2.1",
25+
"@types/inquirer": "^9.0.7",
26+
"chalk": "^5.4.1",
27+
"dotenv": "^16.4.5",
28+
"inquirer": "^9.2.12"
29+
},
30+
"devDependencies": {
31+
"@semantic-release/changelog": "^6.0.3",
32+
"@semantic-release/commit-analyzer": "^13.0.1",
33+
"@semantic-release/git": "^10.0.1",
34+
"@semantic-release/npm": "^12.0.1",
35+
"@types/node": "^20.9.0",
36+
"clean-pkg-json": "^1.3.0",
37+
"pkgroll": "^2.12.2",
38+
"semantic-release": "^24.2.4",
39+
"tsx": "^4.19.3",
40+
"typescript": "^5.2.2"
41+
},
42+
"types": "./dist/types.d.ts",
43+
"main": "./dist/menu.mjs",
44+
"module": "./dist/menu.mjs",
45+
"exports": {
46+
"import": {
47+
"types": "./dist/menu.d.ts",
48+
"default": "./dist/menu.mjs"
49+
}
50+
},
51+
"bin": {
52+
"modular-cli-menu": "./dist/menu.mjs"
53+
},
54+
"files": [
55+
"package.json",
56+
"dist",
57+
"README.md",
58+
"LICENSE"
59+
],
60+
"scripts": {
61+
"dev": "tsx src/index.ts",
62+
"build": "npx pkgroll --clean-dist --minify --env.DEBUG_LOG=false",
63+
"build:en": "npx pkgroll --clean-dist --minify --env.DEBUG_LOG=false --env.MENU_LANGUAGE=it",
64+
"build:it": "npx pkgroll --clean-dist --minify --env.DEBUG_LOG=false --env.MENU_LANGUAGE=it",
65+
"pack:test": "npm pack --dry-run",
66+
"prepack": "clean-pkg-json -r dependencies"
67+
},
68+
"plugins": [
69+
"@semantic-release/commit-analyzer",
70+
"@semantic-release/release-notes-generator",
71+
[
72+
"@semantic-release/npm",
73+
{
74+
"updatePackageJson": true,
75+
"npmPublish": true
76+
}
77+
],
78+
[
79+
"@semantic-release/git",
80+
{
81+
"assets": [
82+
"package.json"
83+
],
84+
"message": "chore(release): ${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
85+
}
86+
]
87+
]
88+
}

0 commit comments

Comments
 (0)