Skip to content

Merge pull request #99 from fwcd/build-wasm-ci #9

Merge pull request #99 from fwcd/build-wasm-ci

Merge pull request #99 from fwcd/build-wasm-ci #9

name: Deploy to crates.io
on:
push:
tags:
- '*'
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Node
uses: actions/setup-node@v3
with:
node-version: '18'
- name: Install dependencies
run: npm install
- name: Compile grammar
run: npm run generate
- name: Set up Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
- name: Publish to crates.io
uses: actions-rs/cargo@v1
with:
command: publish
args: --token ${{ secrets.CRATES_IO_TOKEN }}