Skip to content

Commit af817d4

Browse files
committed
v0.3.0
1 parent 72c75da commit af817d4

File tree

11 files changed

+83
-43
lines changed

11 files changed

+83
-43
lines changed

CONTRIBUTING.md

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,3 +97,43 @@ With the above configuration you can attach the debugger to the language server
9797
```javascript
9898
const debugOptions = { execArgv: ['--nolazy', '--inspect-brk=6009'] };
9999
```
100+
101+
## Release Process
102+
103+
Currently the process of releasing a new version of Langium is done manually one package after another. It requires to carefully update versions and dependencies. Proposals for automation of parts of this process are welcome.
104+
105+
1. Prepare the workspace
106+
* Pull the latest changes
107+
* `npm install`
108+
* `npm test`
109+
2. `packages/langium`
110+
* Update version in `package.json`
111+
* `npm run publish:latest`
112+
3. `packages/langium-cli`
113+
* Update version in `package.json`
114+
* Update dependency to `langium` with `~` as version prefix (include bugfix versions)
115+
* `npm run publish:latest`
116+
4. `packages/langium-sprotty`
117+
* Update version in `package.json`
118+
* Update dependency to `langium` with `~` as version prefix
119+
* `npm run publish:latest`
120+
5. `packages/generator-langium`
121+
* Update version in `package.json`
122+
* Update dependency to `langium` and dev-dependency to `langium-cli` in `langium-template/package.json` with `^` as version prefix (include minor and bugfix versions)
123+
* `npm run publish:latest`
124+
6. `packages/langium-vscode`
125+
* Update version in `package.json`
126+
* Update dependency to `langium`
127+
* `npm install -g vsce`
128+
* `vsce publish -p <token> --yarn` (the last argument is due to an npm bug)
129+
* `npm i -g ovsx`
130+
* `ovsx publish -p <token> --yarn`
131+
7. `examples/*`
132+
* Update dependency to `langium` and dev-dependency to `langium-cli`
133+
8. `npm install` again in the repository root to update `package-lock.json`
134+
9. Commit, tag and push your changes
135+
10. Close the corresponding GitHub milestone
136+
137+
In order to publish `next` versions from the current state of the `main` branch, use `npm run publish:next`, and don't update the `version` numbers manually as this is done by the npm script.
138+
The changes must not be committed to the repository after publishing a `next` version.
139+
Usually we don't publish `next` versions for the VS Code extension, only for the npm packages.

examples/arithmetics/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "arithmetics",
33
"displayName": "arithmetics",
44
"description": "description",
5-
"version": "0.0.1",
5+
"version": "0.0.0",
66
"engines": {
77
"vscode": "^1.56.0"
88
},
@@ -45,7 +45,7 @@
4545
"dependencies": {
4646
"colors": "^1.4.0",
4747
"commander": "^8.0.0",
48-
"langium": "0.2.0",
48+
"langium": "0.3.0",
4949
"vscode-languageclient": "^7.0.0",
5050
"vscode-languageserver": "^7.0.0"
5151
},
@@ -56,7 +56,7 @@
5656
"@typescript-eslint/parser": "^4.14.1",
5757
"eslint": "^7.19.0",
5858
"eslint-plugin-header": "^3.1.1",
59-
"langium-cli": "0.2.0",
59+
"langium-cli": "0.3.0",
6060
"typescript": "^4.1.3"
6161
}
6262
}

examples/domainmodel/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "domainmodel",
33
"displayName": "domainmodel",
44
"description": "description",
5-
"version": "0.0.1",
5+
"version": "0.0.0",
66
"private": true,
77
"engines": {
88
"vscode": "^1.56.0"
@@ -46,7 +46,7 @@
4646
"dependencies": {
4747
"colors": "^1.4.0",
4848
"commander": "^8.0.0",
49-
"langium": "0.2.0",
49+
"langium": "0.3.0",
5050
"lodash": "^4.17.21",
5151
"vscode-languageclient": "^7.0.0",
5252
"vscode-languageserver": "^7.0.0"
@@ -58,7 +58,7 @@
5858
"@typescript-eslint/parser": "^4.14.1",
5959
"eslint": "^7.19.0",
6060
"eslint-plugin-header": "^3.1.1",
61-
"langium-cli": "0.2.0",
61+
"langium-cli": "0.3.0",
6262
"typescript": "^4.1.3",
6363
"@types/jest": "^26.0.20",
6464
"jest": "^26.6.3"

examples/statemachine/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
"dependencies": {
4646
"colors": "^1.4.0",
4747
"commander": "^8.0.0",
48-
"langium": "0.2.0",
48+
"langium": "0.3.0",
4949
"lodash": "^4.17.21",
5050
"vscode-languageclient": "^7.0.0",
5151
"vscode-languageserver": "^7.0.0"
@@ -57,7 +57,7 @@
5757
"@typescript-eslint/parser": "^4.14.1",
5858
"eslint": "^7.19.0",
5959
"eslint-plugin-header": "^3.1.1",
60-
"langium-cli": "0.2.0",
60+
"langium-cli": "0.3.0",
6161
"typescript": "^4.1.3"
6262
}
6363
}

package-lock.json

Lines changed: 25 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

packages/generator-langium/langium-template/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@
4646
"chevrotain": "^9.1.0",
4747
"colors": "^1.4.0",
4848
"commander": "^8.0.0",
49-
"langium": "^0.2.0",
49+
"langium": "^0.3.0",
5050
"vscode-languageclient": "^7.0.0",
5151
"vscode-languageserver": "^7.0.0",
5252
"vscode-uri": "^3.0.2"
@@ -57,7 +57,7 @@
5757
"@typescript-eslint/eslint-plugin": "^4.14.1",
5858
"@typescript-eslint/parser": "^4.14.1",
5959
"eslint": "^7.19.0",
60-
"langium-cli": "^0.2.0",
60+
"langium-cli": "^0.3.0",
6161
"typescript": "^4.1.3"
6262
}
6363
}

packages/generator-langium/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "generator-langium",
3-
"version": "0.2.1",
3+
"version": "0.3.0",
44
"description": "Yeoman generator for Langium - the language engineering tool",
55
"homepage": "https://langium.org",
66
"engines": {

packages/langium-cli/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "langium-cli",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "CLI for Langium - the language engineering tool",
55
"homepage": "https://langium.org",
66
"engines": {
@@ -38,7 +38,7 @@
3838
"commander": "^7.2.0",
3939
"fs-extra": "^9.1.0",
4040
"jsonschema": "^1.4.0",
41-
"langium": "~0.2.0",
41+
"langium": "~0.3.0",
4242
"lodash": "^4.17.21"
4343
},
4444
"devDependencies": {

packages/langium-sprotty/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "langium-sprotty",
3-
"version": "0.2.0",
3+
"version": "0.3.0",
44
"description": "Use Langium as source for Sprotty diagram models",
55
"homepage": "https://langium.org",
66
"keywords": [
@@ -29,7 +29,7 @@
2929
"publish:latest": "npm publish --tag latest"
3030
},
3131
"dependencies": {
32-
"langium": "0.2.0",
32+
"langium": "~0.3.0",
3333
"sprotty-protocol": "^0.11.0"
3434
},
3535
"devDependencies": {

packages/langium-vscode/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "langium-vscode",
33
"publisher": "langium",
4-
"version": "0.2.0",
4+
"version": "0.3.0",
55
"displayName": "Langium",
66
"description": "Support for the Langium Grammar Language",
77
"homepage": "https://langium.org",
@@ -53,7 +53,7 @@
5353
"lint": "eslint src --ext ts"
5454
},
5555
"dependencies": {
56-
"langium": "0.2.0",
56+
"langium": "0.3.0",
5757
"vscode-languageclient": "^7.0.0",
5858
"vscode-languageserver": "^7.0.0"
5959
},

0 commit comments

Comments
 (0)