Skip to content
This repository has been archived by the owner on Dec 20, 2021. It is now read-only.

Commit

Permalink
Publish new latest version
Browse files Browse the repository at this point in the history
  • Loading branch information
dbaeumer committed Jul 24, 2018
1 parent ebc1096 commit 5f9c993
Show file tree
Hide file tree
Showing 5 changed files with 19 additions and 13 deletions.
18 changes: 12 additions & 6 deletions build/npm/post-publish.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
const cp = require('child_process');
const path = require('path');
const fs = require('fs');
const readline = require('readline');
const npm = process.platform === 'win32' ? 'npm.cmd' : 'npm';

function updateNextTag() {
Expand All @@ -23,12 +24,17 @@ function updateNextTag() {

console.log(name + ": set 'next' tag to latest version");

const result = cp.spawnSync(npm, ['dist-tags', 'add', name + '@' + version, 'next'], opts);
const rl = readline.createInterface({ input: process.stdin, output: process.stdout });

if (result.error || result.status !== 0) {
process.exit(1);
}
}
rl.question('Enter OTP token: ', (token) => {
const result = cp.spawnSync(npm, ['--otp', token, 'dist-tags', 'add', name + '@' + version, 'next'], opts);

updateNextTag();
rl.close();

if (result.error || result.status !== 0) {
process.exit(1);
}
});
}

updateNextTag();
4 changes: 2 additions & 2 deletions client/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-languageclient",
"description": "VSCode Language client implementation",
"version": "4.4.0-next.1",
"version": "4.4.0",
"author": "Microsoft Corporation",
"license": "MIT",
"engines": {
Expand All @@ -21,7 +21,7 @@
"vscode": "^1.1.18"
},
"dependencies": {
"vscode-languageserver-protocol": "^3.10.0-next.1"
"vscode-languageserver-protocol": "^3.10.0"
},
"scripts": {
"prepare": "npm run update-vscode",
Expand Down
4 changes: 2 additions & 2 deletions protocol/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-languageserver-protocol",
"description": "VSCode Language Server Protocol implementation",
"version": "3.10.0-next.1",
"version": "3.10.0",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand All @@ -15,7 +15,7 @@
"typings": "./lib/main",
"dependencies": {
"vscode-jsonrpc": "^3.6.2",
"vscode-languageserver-types": "^3.10.0-next.1"
"vscode-languageserver-types": "^3.10.0"
},
"scripts": {
"prepublishOnly": "npm run compile && npm test",
Expand Down
4 changes: 2 additions & 2 deletions server/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-languageserver",
"description": "Language server implementation for node",
"version": "4.4.0-next.1",
"version": "4.4.0",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand All @@ -18,7 +18,7 @@
"typings": "./lib/main",
"dependencies": {
"vscode-uri": "^1.0.3",
"vscode-languageserver-protocol": "^3.10.0-next.1"
"vscode-languageserver-protocol": "^3.10.0"
},
"scripts": {
"prepublishOnly": "npm run compile && npm test",
Expand Down
2 changes: 1 addition & 1 deletion types/package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "vscode-languageserver-types",
"description": "Types used by the Language server for node",
"version": "3.10.0-next.1",
"version": "3.10.0",
"author": "Microsoft Corporation",
"license": "MIT",
"repository": {
Expand Down

0 comments on commit 5f9c993

Please sign in to comment.