-
Notifications
You must be signed in to change notification settings - Fork 18
43 lines (39 loc) · 1.24 KB
/
publish.yml
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
36
37
38
39
40
41
42
43
name: Publish Stable
on:
release:
types: [published]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: pnpm/action-setup@v2
with:
version: 8
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '16'
cache: 'pnpm'
- name: Install vsce + ovsx
run: |
pnpm add --global @vscode/vsce
pnpm add --global ovsx
- name: Dependencies
run: |
HUSKY=0 pnpm install
- name: Build extension
run: |
cd lana
vsce package --no-dependencies
- name: Publish to VS Code Marketplace + Open VSX Registry
run: |
cd lana
echo "Verify vsce token has not expired"
vsce verify-pat -p ${{ secrets.VSCE_TOKEN }}
echo "Verify ovsx token has not expired"
ovsx verify-pat -p ${{ secrets.OVSX_TOKEN }}
echo "Publish to vsce"
vsce publish --packagePath lana-${{ github.event.release.tag_name }}.vsix --no-dependencies -p ${{ secrets.VSCE_TOKEN }}
echo "Publish to ovsx"
ovsx publish lana-${{ github.event.release.tag_name }}.vsix --no-dependencies -p ${{ secrets.OVSX_TOKEN }}