Skip to content

Commit

Permalink
Added new workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Im-Rises committed Aug 26, 2023
1 parent dc6370b commit 869d1f0
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 27 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/wasm-npm-publish.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Wasm NPM Publish

on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

jobs:
build-publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Install wasm-pack
run: cargo install wasm-pack
- name: Build wasm
run: wasm-pack build --target web --out-dir si-emu-pkg --release
- name: Install Node.js
- uses: actions/setup-node@v3
with:
node-version: 16
registry-url: https://registry.npmjs.org/
- name: Move to package directory
run: cd si-emu-pkg
- name: Publish to NPM
- run: npm publish
env:
NODE_AUTH_TOKEN: ${{secrets.npm_token}}
27 changes: 0 additions & 27 deletions .github/workflows/wasm-publish.yml

This file was deleted.

0 comments on commit 869d1f0

Please sign in to comment.