v0.3.1 #23
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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: 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@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@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 }} |