Skip to content

v0.3.0

v0.3.0 #62

Workflow file for this run

name: Release
on:
release:
types: [published]
workflow_dispatch:
permissions:
contents: write
jobs:
build-wasm:
name: Build WASM
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v2
- name: Generate parser
run: tree-sitter generate
- name: Build WASM
run: tree-sitter build --wasm
- name: Upload WASM to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: tree-sitter-htmlmustache.wasm
build-vscode-extension:
name: Build VS Code Extension
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v4
- name: Install pnpm
uses: pnpm/action-setup@v4
with:
version: 10
- name: Set up Node.js
uses: actions/setup-node@v4
with:
node-version: '20'
- name: Set up tree-sitter
uses: tree-sitter/setup-action/cli@v2
- name: Generate parser
run: tree-sitter generate
- name: Build WASM (needed by extension)
run: tree-sitter build --wasm
- name: Install extension dependencies
working-directory: lsp
run: pnpm install
- name: Build extension
working-directory: lsp
run: pnpm run build
- name: Install vsce
run: npm install -g @vscode/vsce
- name: Package extension
working-directory: lsp
run: vsce package --out htmlmustache-lsp.vsix
- name: Upload extension to release
if: github.event_name == 'release'
uses: softprops/action-gh-release@v2
with:
files: lsp/htmlmustache-lsp.vsix
- name: Publish to VS Code Marketplace
if: github.event_name == 'release'
working-directory: lsp
run: vsce publish --packagePath htmlmustache-lsp.vsix || echo "Version may already exist, skipping"
env:
VSCE_PAT: ${{ secrets.VSCE_PAT }}
- name: Install ovsx
run: npm install -g ovsx
- name: Publish to Open VSX Registry
if: github.event_name == 'release'
working-directory: lsp
run: ovsx publish htmlmustache-lsp.vsix || echo "Version may already exist, skipping"
env:
OVSX_PAT: ${{ secrets.OVSX_PAT }}