Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 5 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ jobs:
run: xvfb-run npm test
- name: Build package
run: |
npx vsce package -o ${{ steps.set-version.outputs.name }}.vsix
npx @vscode/vsce package -o ${{ steps.set-version.outputs.name }}.vsix
- uses: actions/upload-artifact@v6
if: github.event_name != 'release'
with:
Expand All @@ -95,6 +95,8 @@ jobs:
needs: build
if: github.event_name == 'release' && needs.build.outputs.taggedbranch == 'master'
runs-on: ubuntu-latest
permissions:
id-token: write
steps:
- uses: actions/checkout@v6
with:
Expand Down Expand Up @@ -122,7 +124,7 @@ jobs:
git push
- name: Build package
run: |
npx vsce package -o ${{ needs.build.outputs.name }}.vsix
npx @vscode/vsce package -o ${{ needs.build.outputs.name }}.vsix
- name: Upload Release Asset
id: upload-release-asset
uses: softprops/action-gh-release@v3
Expand All @@ -132,9 +134,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
- name: Publish to VSCode Marketplace
shell: bash
run: |
[ -n "${{ secrets.VSCE_TOKEN }}" ] && \
npx vsce publish --packagePath ${{ needs.build.outputs.name }}.vsix -p ${{ secrets.VSCE_TOKEN }} || true
run: npx @vscode/vsce publish --oidc --packagePath ${{ needs.build.outputs.name }}.vsix
- name: Publish to Open VSX Registry
shell: bash
run: |
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"webpack": "npm run clean && webpack --mode development",
"webpack-dev": "npm run clean && webpack --mode development --watch",
"clean": "rimraf dist",
"package": "vsce package",
"package": "@vscode/vsce package",
"compile": "webpack --mode production && tsc -p ./",
"test-compile": "webpack --mode development && tsc -p ./",
"watch": "tsc -w -p ./tsconfig.json",
Expand Down
Loading