Skip to content
Merged
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
29 changes: 8 additions & 21 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
name: Publish VS Code Extension

on:
release:
types: [published]

workflow_dispatch:

permissions:
contents: read
contents: write

jobs:
build:
Expand All @@ -21,8 +18,7 @@ jobs:
- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
cache: npm
node-version: 20

- name: Install dependencies
run: npm ci
Expand All @@ -46,7 +42,6 @@ jobs:
name: Attach VSIX to GitHub Release
needs: build
runs-on: ubuntu-latest

permissions:
contents: write

Expand All @@ -55,12 +50,11 @@ jobs:
uses: actions/download-artifact@v4
with:
name: extension
path: dist

- name: Create / update GitHub Release with VSIX
uses: softprops/action-gh-release@v2
- name: Create GitHub Release
uses: softprops/action-gh-release@v1
with:
files: dist/*.vsix
files: "*.vsix"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand All @@ -69,17 +63,11 @@ jobs:
needs: release
runs-on: ubuntu-latest

permissions:
contents: read

steps:
- name: Checkout repository
uses: actions/checkout@v4

- name: Install Node.js
uses: actions/setup-node@v4
with:
node-version: 18
node-version: 20

- name: Install vsce
run: npm install -g @vscode/vsce
Expand All @@ -88,9 +76,8 @@ jobs:
uses: actions/download-artifact@v4
with:
name: extension
path: dist

- name: Publish to VSCode Marketplace
run: vsce publish --packagePath dist/*.vsix
run: vsce publish --packagePath *.vsix
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
VSCE_PAT: ${{ secrets.VSCE_PAT }}