Skip to content

v0.1.2

v0.1.2 #13

Workflow file for this run

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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # 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@44c2b7a8a4ea60a981eaca3cf939b5f4305c123b # 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@23bce251a8cd2ffc3c1075eaa2367cf899916d84 # ratchet:Swatinem/rust-cache@v2
- uses: taiki-e/cache-cargo-install-action@5b024fe3a0a2c7f2aaff0e47871acf0d14b07207 # ratchet:taiki-e/cache-cargo-install-action@v1
with:
tool: wasm-bindgen-cli
- name: Build rust wasm
run: make rust_build_wasm
- uses: actions/setup-node@60edb5dd545a775178f52524783378180af0d1f8 # ratchet:actions/setup-node@v3
with:
node-version-file: '.nvmrc'
- uses: pnpm/action-setup@fe02b34f77f8bc703788d5817da081398fad5dd2 # ratchet:pnpm/action-setup@v2
with:
version: 9
- 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@69320dbe05506a9a39fc8ae11030b214ec2d1f87 # ratchet:softprops/action-gh-release@v2.0.5
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 }}