Skip to content

Commit

Permalink
ovsc_build
Browse files Browse the repository at this point in the history
  • Loading branch information
rhalaly authored Jun 5, 2024
1 parent e2ed0e9 commit facd666
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 4 deletions.
11 changes: 8 additions & 3 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,14 @@ jobs:
run: xvfb-run -a yarn test
if: runner.os == 'Linux'

- name: Publish
- name: Publish VSCode
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
run: yarn deploy
run: yarn vscode:publish
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}


- name: Publish OVSX
if: success() && startsWith( github.ref, 'refs/tags/v') && matrix.os == 'ubuntu-latest'
run: yarn ovsx
env:
VSCE_PAT: ${{ secrets.OVSX_PAT }}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,8 @@
"pretest": "yarn run compile && yarn run lint",
"lint": "eslint src --ext ts",
"test": "node ./out/test/runTest.js",
"deploy": "vsce publish --yarn"
"vscode:publish": "vsce publish --yarn",
"ovsx:publish": "ovsx publish --yarn"
},
"devDependencies": {
"@types/glob": "^7.1.3",
Expand All @@ -87,6 +88,7 @@
"eslint": "^7.19.0",
"glob": "^7.1.6",
"mocha": "^8.2.1",
"ovsx": "0.9.1",
"typescript": "^4.1.3",
"vsce": "^1.87.1",
"vscode-test": "^1.5.0"
Expand Down

0 comments on commit facd666

Please sign in to comment.