File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2323 yarn lint
2424 git diff --exit-code
2525
26- build-and-deploy :
26+ build-and-deploy-gh-pages :
2727 runs-on : ubuntu-latest
2828 steps :
2929 - uses : actions/checkout@v4
5555 git commit -am "update ${{ github.sha }}"
5656 git push -u origin +HEAD:gh-pages
5757 rm -rf .git
58+
59+ build-and-deploy-vscode-plugin :
60+ runs-on : ubuntu-latest
61+ steps :
62+ - uses : actions/checkout@v4
63+ with :
64+ submodules : true
65+ fetch-depth : 0
66+ - name : Prepare dependencies
67+ run : |
68+ sudo apt-get update
69+ sudo apt-get install -y jq
70+ corepack enable
71+ yarn
72+ - name : Update package version
73+ run : |
74+ VERSION=$(git describe | sed 's|v\([^-]\+\)-\([[:digit:]]\+\).*|\1.\2|')
75+ cp extension/package.json temp.json
76+ jq --tab ".version = \"${VERSION}\"" temp.json > extension/package.json
77+ rm temp.json
78+ - name : Publish VSCode Extension
79+ env :
80+ VSC_MARKETPLACE_TOKEN : ${{ secrets.VSC_MARKETPLACE_TOKEN }}
81+ run : |
82+ yarn publish:vsix -p ${VSC_MARKETPLACE_TOKEN}
Original file line number Diff line number Diff line change 77 "url" : " https://github.com/antmicro/zephelin-trace-viewer.git"
88 },
99 "version" : " 0.0.1" ,
10- "publisher" : " adi " ,
10+ "publisher" : " Antmicro " ,
1111 "license" : " Apache-2.0" ,
1212 "engines" : {
1313 "vscode" : " ^1.85.0"
4444 "scripts" : {
4545 "build" : " node esbuild.js" ,
4646 "watch" : " node esbuild.js --watch" ,
47- "package" : " yarn build && vsce package --no-dependencies"
47+ "package" : " yarn build && vsce package --no-dependencies" ,
48+ "publish" : " yarn package && vsce publish --no-dependencies \" $@\" "
4849 },
4950 "devDependencies" : {
5051 "@types/vscode" : " ^1.85.0" ,
Original file line number Diff line number Diff line change 1515 "preview" : " vite preview" ,
1616 "build:ext" : " yarn --cwd extension build" ,
1717 "build:all" : " yarn build && yarn build:ext" ,
18- "build:vsix" : " yarn build:all && shx cp -r ./dist ./extension/dist && yarn --cwd extension package"
18+ "build:vsix" : " yarn build:all && shx cp -r ./dist ./extension/dist && yarn --cwd extension package" ,
19+ "publish:vsix" : " yarn build:all && shx cp -r ./dist ./extension/dist && yarn --cwd extension publish"
1920 },
2021 "dependencies" : {
2122 "@bokeh/bokehjs" : " ^3.7.3" ,
You can’t perform that action at this time.
0 commit comments