diff --git a/azure-pipelines.yaml b/azure-pipelines.yaml index 2cebed7..de22673 100644 --- a/azure-pipelines.yaml +++ b/azure-pipelines.yaml @@ -6,6 +6,7 @@ trigger: - prometheansacrifice/* - rustykey/* - wokalski/* + - refs/tags/* jobs: - template: .ci/build-platform.yml @@ -26,7 +27,7 @@ jobs: parameters: platform: Windows vmImage: windows-2019 - + - job: Release displayName: Release dependsOn: @@ -49,3 +50,9 @@ jobs: inputs: PathtoPublish: '.' ArtifactName: release + + - bash: | + echo ">>> Publish" + npm run publish -p $(VSCODE_MARKETPLACE_TOKEN) + displayName: 'Publish Extension' + condition: and(succeeded(), startsWith(variables['Build.sourceBranch'], 'refs/tags/')) diff --git a/package-lock.json b/package-lock.json index 498bd30..a836d58 100644 --- a/package-lock.json +++ b/package-lock.json @@ -495,9 +495,9 @@ } }, "@types/node": { - "version": "8.10.59", - "resolved": "https://registry.npmjs.org/@types/node/-/node-8.10.59.tgz", - "integrity": "sha512-8RkBivJrDCyPpBXhVZcjh7cQxVBSmRk9QM7hOketZzp6Tg79c0N8kkpAIito9bnJ3HCVCHVYz+KHTEbfQNfeVQ==", + "version": "13.5.1", + "resolved": "https://registry.npmjs.org/@types/node/-/node-13.5.1.tgz", + "integrity": "sha512-Jj2W7VWQ2uM83f8Ls5ON9adxN98MvyJsMSASYFuSvrov8RMRY64Ayay7KV35ph1TSGIJ2gG9ZVDdEq3c3zaydA==", "dev": true }, "@types/stack-utils": { @@ -6057,9 +6057,9 @@ } }, "readable-stream": { - "version": "3.4.0", - "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.4.0.tgz", - "integrity": "sha512-jItXPLmrSR8jmTRmRWJXCnGJsfy85mB3Wd/uINMXA65yrnFo0cPClFIUWzo2najVNSl+mx7/4W8ttlLWJe99pQ==", + "version": "3.5.0", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.5.0.tgz", + "integrity": "sha512-gSz026xs2LfxBPudDuI41V1lka8cxg64E66SGe78zJlsUofOg/yqwezdIcdfwik6B4h8LFmWPA9ef9X3FiNFLA==", "dev": true, "requires": { "inherits": "^2.0.3", diff --git a/package.json b/package.json index 48bb6a6..e46ae07 100644 --- a/package.json +++ b/package.json @@ -99,7 +99,8 @@ "test:opam": "node ./test/runOpamTests.js", "test": "npm run test:unit && npm run test:esy && npm run test:opam && npm run test:bsb", "package": "vsce package", - "refmt": "find ./src ./fixtures ./__tests__ -type f -name \"*.re\" | xargs bsrefmt --in-place" + "refmt": "find ./src ./fixtures ./__tests__ -type f -name \"*.re\" | xargs bsrefmt --in-place", + "publish": "vsce publish" }, "devDependencies": { "@glennsl/bs-jest": "^0.4.9", @@ -111,9 +112,9 @@ "npm-run-all": "^4.1.5", "prettier": "^1.19.1", "vsce": "^1.71.0", + "vscode": "^1.1.36", "vscode-test": "^1.2.3", "webpack": "^4.41.5", - "vscode": "^1.1.36", "webpack-cli": "^3.3.10" }, "dependencies": {