Skip to content

Publish Release

Publish Release #10

Workflow file for this run

name: Publish Release
on:
release:
types: [published]
jobs:
sync-latest-branch:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
with:
fetch-depth: 0
- run: |
git checkout -f -b latest origin/latest
git merge --ff-only origin/main
git push origin latest
publish:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # v4.0.0
- uses: actions/setup-node@39370e3970a6d050c480ffad4ff0ed4d3fdee5af # v4
with:
node-version-file: .node-version
cache: pnpm
- run: pnpm i
- run: pnpm build
- run: pnpm vsce package --no-dependencies -o extension.vsix
- name: Upload to GitHub Release
uses: csexton/release-asset-action@3567794e918fa3068116688122a76cdeb57b5f09 # v3
with:
file: extension.vsix
github-token: ${{ secrets.GITHUB_TOKEN }}
release-url: ${{ github.event.release.url }}
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@28e2d3f5817fccf23c1f219eb0cecc903132d1a2 # v1
id: publishToOpenVSX
with:
extensionFile: extension.vsix
pat: ${{ secrets.OPEN_VSX_TOKEN }}
registryUrl: https://open-vsx.org
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@28e2d3f5817fccf23c1f219eb0cecc903132d1a2 # v1
with:
extensionFile: extension.vsix
pat: ${{ secrets.VSCE_PAT }}
registryUrl: https://marketplace.visualstudio.com