Skip to content

fix undefined handling in web and if/then in wat fueling test #8

fix undefined handling in web and if/then in wat fueling test

fix undefined handling in web and if/then in wat fueling test #8

name: Publish Release(s)
on:
push:
tags:
- "wasm_run-v*"
env:
MELOS_VERSION: "3.1.0"
permissions:
contents: write
discussions: write
jobs:
publish_github_release:
# macOS because we can cross-compile to all other platforms from it
runs-on: macos-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- run: dart pub global activate melos ${{ env.MELOS_VERSION }} && melos bs
- uses: goto-bus-stop/setup-zig@v2
- uses: KyleMayes/install-llvm-action@v1
with:
version: "15"
- uses: dtolnay/rust-toolchain@stable
with:
toolchain: stable
components: rustfmt
- run: cargo install cargo-wasi
- uses: nttld/setup-ndk@v1
with:
ndk-version: r25b
- name: Build all library binaries
run: melos run build
- name: Build wasm component
run: cp packages/dart_wit_component/wasm_wit_component/lib/dart_wit_component.wasm platform-build/dart_wit_component.wasm
- name: Create GitHub release
uses: softprops/action-gh-release@v1
with:
files: platform-build/*
publish_pub_release:
needs: publish_github_release
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: subosito/flutter-action@v2
- run: dart pub global activate melos ${{ env.MELOS_VERSION }} && melos bs
- name: Setup pub.dev credentials
run: |
mkdir -p $HOME/.config/dart
cat << EOF > $HOME/.config/dart/pub-credentials.json
${{ secrets.PUB_CRED_JSON }}
EOF
- name: Dry-run publish to pub.dev
run: melos publish -y --dry-run
- name: Publish to pub.dev
run: melos publish -y --no-dry-run