-
-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (33 loc) · 1014 Bytes
/
ci-publish.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
name: "🍍 Publish to Extension Marketplace"
on:
push:
tags:
- "v*"
release:
types: [created]
jobs:
deploy:
runs-on: ubuntu-latest
env:
VSCE_PAT: ${{ secrets.VSCE_TOKEN }}
OPENVSX_TOKEN: ${{ secrets.OPENVSX_TOKEN }}
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v3
with:
node-version: "16.x"
registry-url: "https://registry.npmjs.org/"
- name: "🌌 Prepare"
working-directory: ./Extension
run: |
npm install -g vsce
npm install
- name: "🛠️ Build"
working-directory: ./Extension
run: npm run build
- name: "🚀 Publish to Visual Studio Marketplace"
working-directory: ./Extension
run: vsce publish --target win32-x64 win32-arm64 darwin-x64 darwin-arm64 linux-x64 linux-armhf
- name: "🚀 Publish to Open VSX Registry"
working-directory: ./Extension
run: npx --yes ovsx publish -p $OPENVSX_TOKEN