Skip to content

docs: update README for v0.3.0 features #10

docs: update README for v0.3.0 features

docs: update README for v0.3.0 features #10

Workflow file for this run

name: Release

Check failure on line 1 in .github/workflows/release.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/release.yml

Invalid workflow file

(Line: 58, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.NPM_TOKEN != '', (Line: 102, Col: 13): Unrecognized named-value: 'secrets'. Located at position 1 within expression: secrets.CARGO_REGISTRY_TOKEN != ''
on:
push:
tags:
- "v*"
jobs:
verify:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Verify conformance
run: bash scripts/conformance.sh
- name: Verify README command examples
run: bash scripts/check_readme_examples.sh
- name: Validate schemas
run: bash scripts/validate_schemas.sh
- name: Verify version/tag consistency
run: bash scripts/release/verify_versions.sh "${GITHUB_REF_NAME}"
package-node:
needs: verify
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: '22'
registry-url: 'https://registry.npmjs.org'
- name: Build npm package tarball
run: npm pack
- name: Upload npm artifact
uses: actions/upload-artifact@v4
with:
name: node-package
path: '*.tgz'
- name: Publish to npm
if: ${{ secrets.NPM_TOKEN != '' }}
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: npm publish --access public
package-rust:
needs: verify
runs-on: ${{ matrix.os }}
strategy:
matrix:
include:
- os: ubuntu-latest
artifact_name: bridge-linux-x64
binary_path: target/release/bridge
- os: macos-latest
artifact_name: bridge-macos-arm64
binary_path: target/release/bridge
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Build release binary
run: cargo build --manifest-path cli/Cargo.toml --release
- name: Upload release binary
uses: actions/upload-artifact@v4
with:
name: ${{ matrix.artifact_name }}
path: ${{ matrix.binary_path }}
publish-crate:
needs: verify
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Setup Rust
uses: dtolnay/rust-toolchain@stable
- name: Publish crate to crates.io
if: ${{ secrets.CARGO_REGISTRY_TOKEN != '' }}
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --manifest-path cli/Cargo.toml