File tree Expand file tree Collapse file tree 1 file changed +19
-1
lines changed
Expand file tree Collapse file tree 1 file changed +19
-1
lines changed Original file line number Diff line number Diff line change 1- name : Package VSIX
1+ name : Package and Publish VSIX
22
33on :
44 workflow_dispatch :
2121 with :
2222 path : ./*.vsix
2323 retention-days : 5
24+
25+ -
uses :
johnnybenson/[email protected] 26+ id : package-json
27+ with :
28+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ - run : echo "vsixPath=sas-lsp-${{ steps.package-json.outputs.version }}.vsix" >> "$GITHUB_OUTPUT"
30+ id : vsixPath
31+ if : steps.package-json.outputs.has-updated == 'true'
32+ - run : npx @vscode/vsce publish -i ${{ steps.vsixPath.outputs.vsixPath }}
33+ if : steps.package-json.outputs.has-updated == 'true'
34+ env :
35+ VSCE_PAT : ${{ secrets.VSCE_PAT }}
36+ - run : npx ovsx publish ${{ steps.vsixPath.outputs.vsixPath }} -p ${{ secrets.OVSX_PAT }}
37+ if : steps.package-json.outputs.has-updated == 'true'
38+ - run : |
39+ git tag -f v${{ steps.package-json.outputs.version }}
40+ git push -f origin v${{ steps.package-json.outputs.version }}
41+ if: steps.package-json.outputs.has-updated == 'true'
You can’t perform that action at this time.
0 commit comments