Skip to content

v0.5.0

v0.5.0 #30

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@692973e3d937129bcbf40652eb9f2f61becf3332 # 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@692973e3d937129bcbf40652eb9f2f61becf3332 # ratchet:actions/checkout@v3
with:
submodules: 'true'
- uses: actions-rs/toolchain@16499b5e05bf2e26879000db0c1d13f7e13fa3af # ratchet:actions-rs/toolchain@v1
with:
toolchain: nightly
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@caa6f48d18d42462f9c30df89e2b4f71a42b7c2c # 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@1e60f620b9541d16bece96c5465dc8ee9832be0b # 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@c062e08bd532815e2082a85e87e3ef29c3e6d191 # ratchet:softprops/action-gh-release@v2.0.8
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 }}