-
Notifications
You must be signed in to change notification settings - Fork 59
54 lines (54 loc) · 2.01 KB
/
release-vsix.yml
File metadata and controls
54 lines (54 loc) · 2.01 KB
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
44
45
46
47
48
49
50
51
52
53
54
name: Release VSIX Workflow
on:
release:
types: [published]
env:
PLAYWRIGHT_SKIP_BROWSER_DOWNLOAD: true
CARGO_INCREMENTAL: 0
jobs:
check-versions-match:
name: Check versions match
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/checkout@v3
with:
submodules: 'true'
- name: Install jq
run: sudo apt-get install jq
- run: make check_versions_match
upload-vsix-release:
name: Upload VSIX Release
runs-on: ubuntu-latest
needs:
- check-versions-match
steps:
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # ratchet:actions/checkout@v3
with:
submodules: 'true'
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
toolchain: stable
target: wasm32-unknown-unknown
override: true
profile: minimal
- uses: Swatinem/rust-cache@779680da715d629ac1d338a641029a2f4372abb5 # ratchet:Swatinem/rust-cache@v2
- run: cargo install wasm-bindgen-cli
- name: Build rust wasm
run: make rust_build_wasm
- uses: actions/setup-node@6044e13b5dc448c55e2357c09f80417699197238 # ratchet:actions/setup-node@v4
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@41ff72655975bd51cab0327fa583b6e92b6d3061 # ratchet:pnpm/action-setup@v2
with:
version: 10
- name: Install dependencies
run: pnpm install -r --frozen-lockfile
- name: Build extension
run: pnpm run build_extension
- name: Upload Release Asset
uses: softprops/action-gh-release@a06a81a03ee405af7f2048a818ed3f03bbf83c7b # ratchet:softprops/action-gh-release@v2.5.0
with:
files: ./js/packages/quary-extension/quary-*.vsix
- run: pnpx vsce publish --packagePath $(find ./js/packages/quary-extension/quary-*.vsix)
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}