From dfab9ece937e185ec39a45b3d0df5172acbfb962 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rapha=C3=ABl=20Larivi=C3=A8re?= Date: Mon, 4 Mar 2024 15:26:53 -0500 Subject: [PATCH] ci: add workflow to publish on npmjs.org --- .github/workflows/publish.yml | 26 ++++++++++++++++++++++++++ .github/workflows/rust.yml | 5 +++-- 2 files changed, 29 insertions(+), 2 deletions(-) create mode 100644 .github/workflows/publish.yml diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml new file mode 100644 index 0000000..77984f5 --- /dev/null +++ b/.github/workflows/publish.yml @@ -0,0 +1,26 @@ +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 + + - name: Build + run: build.sh + + - uses: actions/upload-artifact@v4 + with: + name: npm-package + path: dist 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: