🧼 optimize install size #126
This file contains hidden or 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: Verify | |
| on: | |
| push: | |
| branches: main | |
| pull_request: | |
| branches: main | |
| permissions: | |
| contents: read | |
| jobs: | |
| test: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: setup deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: format | |
| run: deno task fmt:check | |
| - name: lint | |
| run: deno lint | |
| - name: install binaryen | |
| run: sudo apt-get install -y binaryen | |
| - name: build wasm | |
| run: make | |
| - name: test | |
| run: deno task test | |
| jsr: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: setup deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: install binaryen | |
| run: sudo apt-get install -y binaryen | |
| - name: build wasm | |
| run: make | |
| - name: Build JSR | |
| run: deno task build:jsr 0.0.0-verify.0 | |
| - name: dry run publish | |
| run: deno publish --dry-run --allow-dirty | |
| npm: | |
| needs: test | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: checkout | |
| uses: actions/checkout@v4 | |
| with: | |
| submodules: true | |
| - name: setup deno | |
| uses: denoland/setup-deno@v2 | |
| with: | |
| deno-version: v2.x | |
| - name: Setup Node | |
| uses: actions/setup-node@v4 | |
| with: | |
| node-version: 24 | |
| - name: install binaryen | |
| run: sudo apt-get install -y binaryen | |
| - name: build wasm | |
| run: make | |
| - name: Build | |
| run: deno task build:npm 0.0.0-verify.0 | |
| - name: dry run publish | |
| run: npm publish --dry-run --tag=verify | |
| working-directory: ./build/npm |