name: Main

on: [push, pull_request]

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Install wasm-pack
      run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
    - name: Yarn install
      run: yarn install
    - name: Generate search index
      run: yarn gen
    - name: Build WASM
      run: yarn build
    - name: Webpack
      run: yarn webpack

name: Main

on: push

jobs:
  build:

    runs-on: ubuntu-latest

    steps:
    - uses: actions/checkout@v1
    - name: Install wasm-pack
      run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
    - name: Yarn install
      run: yarn install
    - name: Generate search index
      run: yarn gen
    - name: Build WASM
      run: yarn build
    - name: Webpack
      run: yarn webpack

Disable pull_request event in CI
Disable pull_request event in CI