Skip to content

Commit

Permalink
Merge pull request #16 from Harzu/BUG-14
Browse files Browse the repository at this point in the history
Bug 14
  • Loading branch information
Harzu authored Jan 14, 2022
2 parents 2647e65 + e6b6b99 commit e1f46de
Show file tree
Hide file tree
Showing 34 changed files with 19,802 additions and 12,261 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: CI

on:
push:

jobs:
CI:
name: CI
runs-on: ubuntu-latest
steps:
- name: checkout code from master
uses: actions/checkout@v2
with:
fetch-depth: '0'

- name: prepare
run: |
rustup target add wasm32-unknown-unknown
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: install npm dependencies
run: npm install

- name: build
run: npm run build

- name: test rust
run: npm run test:rust

- name: test typescript
run: npm run test:ts
34 changes: 34 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Publish Package to npmjs

on:
release:
types: [created]

jobs:
Release:
runs-on: ubuntu-latest
steps:
- name: checkout code from master
uses: actions/checkout@v2
with:
fetch-depth: '0'

- uses: actions/setup-node@v2
with:
node-version: '16.x'
registry-url: 'https://registry.npmjs.org'

- name: prepare
run: |
rustup target add wasm32-unknown-unknown
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
- name: install npm dependencies
run: npm install

- name: build
run: npm run build

- run: npm publish
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
1 change: 1 addition & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Folders
docs
target
examples
node_modules
Expand Down
34 changes: 0 additions & 34 deletions .travis.yml

This file was deleted.

Loading

0 comments on commit e1f46de

Please sign in to comment.