diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..5b1bf6e --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,32 @@ +name: Publish Packages + +on: + push: + workflow_dispatch: + +jobs: + npmjs: + runs-on: ubuntu-latest + defaults: + run: + working-directory: wasm + + steps: + - uses: actions/checkout@v4 + + - name: Install dependencies + run: cargo install wasm-pack + working-directory: wasm + + - name: Build + run: ./build.sh + working-directory: wasm + + - name: Build + run: npm publish --dry-run + working-directory: dist/bundler + + - uses: actions/upload-artifact@v4 + with: + name: npm-bundler + path: dist/bundler diff --git a/.github/workflows/rust.yml b/.github/workflows/rust.yml index 7e41ec2..828c130 100644 --- a/.github/workflows/rust.yml +++ b/.github/workflows/rust.yml @@ -1,7 +1,8 @@ -name: Rust +name: Test - Rust on: - push: + workflow_dispatch: + pull_request: branches: master jobs: