Skip to content

Commit

Permalink
ci: run publish separated
Browse files Browse the repository at this point in the history
  • Loading branch information
muuvmuuv committed Jul 7, 2023
1 parent be07575 commit b3a9ab0
Showing 1 changed file with 14 additions and 1 deletion.
15 changes: 14 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- run: npm run package
- run: npm run lint

publish:
publish-open-vsx:
runs-on: ubuntu-latest
needs:
- verify
Expand All @@ -38,6 +38,19 @@ jobs:
uses: HaaLeo/publish-vscode-extension@v1
with:
pat: ${{ secrets.OPEN_VSX_TOKEN }}

publish-vs-marketplace:
runs-on: ubuntu-latest
needs:
- verify
if: github.event_name == 'release'
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v2
with:
node-version: 16
cache: "npm"
- run: npm ci
- name: Publish to Visual Studio Marketplace
uses: HaaLeo/publish-vscode-extension@v1
with:
Expand Down

0 comments on commit b3a9ab0

Please sign in to comment.