Skip to content

Commit

Permalink
feat[ci]: automatically release to marketplaces (#19)
Browse files Browse the repository at this point in the history
Automatically release the extension to the VS Code Marketplace and Open
VSX Registry on newly published GitHub releases.

Fixes #16
Fixes #17
Signed-off-by: Roald Nefs <[email protected]>
  • Loading branch information
roaldnefs authored Dec 17, 2021
1 parent b04b285 commit 513def8
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
name: Release Extension

on:
# Trigger the workflow on newly published releases on GitHub.
release:
types: [published]

jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v1
with:
node-version: 16
- run: npm ci
- name: Publish to Open VSX Registry
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
registryUrl: https://marketplace.visualstudio.com

0 comments on commit 513def8

Please sign in to comment.