Skip to content

Commit

Permalink
ci: add workflow to publish on npmjs.org
Browse files Browse the repository at this point in the history
  • Loading branch information
Sylfwood committed Mar 4, 2024
1 parent 5466cd7 commit dfab9ec
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
5 changes: 3 additions & 2 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,8 @@
name: Rust
name: Test - Rust

on:
push:
workflow_dispatch:
pull_request:
branches: master

jobs:
Expand Down

0 comments on commit dfab9ec

Please sign in to comment.