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 909199b
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 2 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
@@ -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
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 909199b

Please sign in to comment.