469f85fc49
* Switch over the last set of jobs to arc runners
* Use dind runners
* Disable matrix notification so we can use non-dind runners
* wip
* Add workflow_dispatch
* Revert "wip"
This reverts commit ae34efd32e.
51 lines
1.1 KiB
YAML
51 lines
1.1 KiB
YAML
name: publish-sdk-npm
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: arc-ubuntu-20.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
|
|
- name: Install Node
|
|
uses: actions/setup-node@v4
|
|
with:
|
|
node-version: 18
|
|
registry-url: "https://registry.npmjs.org"
|
|
|
|
- name: Setup yarn
|
|
run: npm install -g yarn
|
|
|
|
- name: Install Rust stable
|
|
uses: actions-rs/toolchain@v1
|
|
with:
|
|
toolchain: stable
|
|
|
|
- name: Install wasm-pack
|
|
run: curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh
|
|
|
|
- name: Install wasm-opt
|
|
run: cargo install wasm-opt
|
|
|
|
- name: Set up Go
|
|
uses: actions/setup-go@v5
|
|
with:
|
|
go-version: "1.20"
|
|
|
|
- name: Install TinyGo
|
|
uses: acifani/setup-tinygo@v2
|
|
with:
|
|
tinygo-version: "0.27.0"
|
|
|
|
- name: Install dependencies
|
|
run: yarn
|
|
|
|
- name: Build WASM and Typescript SDK
|
|
run: yarn sdk:build
|
|
|
|
- name: Publish to NPM
|
|
env:
|
|
NODE_AUTH_TOKEN: ${{ secrets.NODE_AUTH_TOKEN }}
|
|
run: ./sdk/typescript/scripts/publish.sh
|