Skip to content

Commit 5528276

Browse files
authored
fix: split extension publishing into separate jobs (#108)
1 parent 5188b3a commit 5528276

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.github/workflows/release-to-marketplaces.yml

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ on:
77

88
jobs:
99

10-
release:
11-
name: Release to marketplaces
10+
release-open-vsx:
11+
name: Release to Open VSX
1212
# such a specific commit messages comes from if-nodejs-version-bump.yml workflow
1313
if: startsWith(github.event.commits[0].message, 'chore(release):')
1414
runs-on: ubuntu-latest
@@ -25,12 +25,27 @@ jobs:
2525
run: npm ci
2626
- name: Publish to Open VSX Registry
2727
uses: HaaLeo/publish-vscode-extension@v1
28-
id: publishToOpenVSX
2928
with:
3029
pat: ${{ secrets.OPEN_VSX_TOKEN }}
30+
31+
release-vs-code-marketplace:
32+
name: Release to VS Code Marketplace
33+
# such a specific commit messages comes from if-nodejs-version-bump.yml workflow
34+
if: startsWith(github.event.commits[0].message, 'chore(release):')
35+
runs-on: ubuntu-latest
36+
steps:
37+
- name: Checkout repository
38+
uses: actions/checkout@v2
39+
- name: Setup Node.js
40+
uses: actions/setup-node@v2
41+
with:
42+
node-version: 14
43+
cache: 'npm'
44+
cache-dependency-path: '**/package-lock.json'
45+
- name: Install dependencies
46+
run: npm ci
3147
- name: Publish to Visual Studio Marketplace
3248
uses: HaaLeo/publish-vscode-extension@v1
3349
with:
3450
pat: ${{ secrets.VS_MARKETPLACE_TOKEN }}
35-
registryUrl: https://marketplace.visualstudio.com
36-
extensionFile: ${{ steps.publishToOpenVSX.outputs.vsixPath }}
51+
registryUrl: https://marketplace.visualstudio.com

0 commit comments

Comments
 (0)