Skip to content

Commit

Permalink
feat: create vsix artifacts part of release
Browse files Browse the repository at this point in the history
  • Loading branch information
jnoortheen committed Dec 23, 2020
1 parent 7a49458 commit 6e2c1fe
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 9 deletions.
24 changes: 16 additions & 8 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,20 @@ jobs:
${{ runner.os }}-yarn-
- run: yarn install --frozen-lockfile
- run: yarn build
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v0
- run: yarn package
# - name: Publish to Open VSX Registry
# uses: HaaLeo/publish-vscode-extension@v0
# with:
# pat: ${{ secrets.OPEN_VSX_TOKEN }}
# - name: Publish to Visual Studio Marketplace
# uses: HaaLeo/publish-vscode-extension@v0
# with:
# pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
# registryUrl: https://marketplace.visualstudio.com
- name: upload vsix
uses: Roang-zero1/github-upload-release-artifacts-action@master
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v0
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com
args:
- nix-ide*.vsix
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -131,3 +131,5 @@ dist
# latest paket versions
.paket/
paket-files/

*.vsix
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
"eslint-config-prettier": "^7.1.0",
"husky": "^5.0.6",
"js-yaml": "^3.14.0",
"ovsx": "^0.1.0-next.72b2e9d",
"prettier": "^2.2.1",
"pretty-quick": "^3.1.0",
"standard-version": "^9.0",
Expand All @@ -108,7 +109,8 @@
"watch": "yarn build --watch",
"postinstall": "husky install",
"release": "standard-version && git push --follow-tags",
"pkg-release": "vsce publish && ovsx publish --pat $OVS_PAT",
"package": "vsce package",
"publish": "vsce publish && ovsx publish --pat $OVS_PAT",
"lint": "eslint --ext ts src"
},
"dependencies": {
Expand Down
40 changes: 40 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1350,6 +1350,11 @@ flatted@^3.1.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.1.0.tgz#a5d06b4a8b01e3a63771daa5cb7a1903e2e57067"
integrity sha512-tW+UkmtNg/jv9CSofAKvgVcO7c2URjhTdW1ZTkcAritblu8tajiYy7YisnIflEwtKssCtOxpnBRoCB7iap0/TA==

follow-redirects@^1.13.0:
version "1.13.1"
resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.13.1.tgz#5f69b813376cee4fd0474a3aba835df04ab763b7"
integrity sha512-SSG5xmZh1mkPGyKzjZP8zLjltIfpW32Y5QpdNJyjcfGxK3qo3NDDkZOZSFiGn1A6SclQxY9GzEwAHQ3dmYRWpg==

fs-access@^1.0.1:
version "1.0.1"
resolved "https://registry.yarnpkg.com/fs-access/-/fs-access-1.0.1.tgz#d6a87f262271cefebec30c553407fb995da8777a"
Expand Down Expand Up @@ -2255,6 +2260,15 @@ osenv@^0.1.3:
os-homedir "^1.0.0"
os-tmpdir "^1.0.0"

ovsx@^0.1.0-next.72b2e9d:
version "0.1.0-next.72b2e9d"
resolved "https://registry.yarnpkg.com/ovsx/-/ovsx-0.1.0-next.72b2e9d.tgz#60fd21ba4b0837a8ccfc2effc09317a911a63225"
integrity sha512-bjuJt+LOZgPDNRzMsAn6CkS65HHsKxQM2t7CbssSdLNopVCHJR8enWljsvvt/6+DwRN1BrhTIbMrfhKNBY6+Rw==
dependencies:
commander "^6.1.0"
follow-redirects "^1.13.0"
vsce "~1.81.1"

p-limit@^1.1.0:
version "1.3.0"
resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8"
Expand Down Expand Up @@ -3233,6 +3247,32 @@ vsce@^1.83.0:
yauzl "^2.3.1"
yazl "^2.2.2"

vsce@~1.81.1:
version "1.81.1"
resolved "https://registry.yarnpkg.com/vsce/-/vsce-1.81.1.tgz#c741e9830cc750925e5f37b1e048341b98125262"
integrity sha512-1yWAYRxTx/PKSFZnuELe7GPyIo70H/XKJqf6wGikofUK3f3TCNGI6F9xkTQFvXKNe0AygUuxN7kITyPIQGMP+w==
dependencies:
azure-devops-node-api "^7.2.0"
chalk "^2.4.2"
cheerio "^1.0.0-rc.1"
commander "^6.1.0"
denodeify "^1.2.1"
glob "^7.0.6"
leven "^3.1.0"
lodash "^4.17.15"
markdown-it "^10.0.0"
mime "^1.3.4"
minimatch "^3.0.3"
osenv "^0.1.3"
parse-semver "^1.1.1"
read "^1.0.7"
semver "^5.1.0"
tmp "0.0.29"
typed-rest-client "1.2.0"
url-join "^1.1.0"
yauzl "^2.3.1"
yazl "^2.2.2"

vscode-jsonrpc@6.0.0:
version "6.0.0"
resolved "https://registry.yarnpkg.com/vscode-jsonrpc/-/vscode-jsonrpc-6.0.0.tgz#108bdb09b4400705176b957ceca9e0880e9b6d4e"
Expand Down

0 comments on commit 6e2c1fe

Please sign in to comment.