Skip to content

Commit

Permalink
build: Add script for version and publish by Lerna
Browse files Browse the repository at this point in the history
Signed-off-by: Dominik Jelinek <[email protected]>
  • Loading branch information
djelinek committed Apr 23, 2024
1 parent 11cd08f commit c152f80
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
7 changes: 6 additions & 1 deletion lerna.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@
"$schema": "node_modules/lerna/schemas/lerna-schema.json",
"version": "independent",
"npmClient": "npm",
"verbose": true
"verbose": true,
"command": {
"version": {
"message": "chore(release): Publish"
}
}
}
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@
"url": "https://github.com/redhat-developer/vscode-extension-tester.git"
},
"scripts": {
"version": "lerna version --no-private --no-push --signoff-git-commit",
"publish": "lerna publish from-package --no-private",
"prepublishOnly": "npm run build",
"build": "npx lerna run build",
"build:changed": "npx lerna run build --since main",
"build": "lerna run build",
"build:changed": "lerna run build --since main",
"test": "npm run ui-test --workspace=extester-test",
"test:build": "npm run build:changed && npm install --workspace=extester-test && npm test"
},
Expand Down

0 comments on commit c152f80

Please sign in to comment.