Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
60 changes: 60 additions & 0 deletions .github/workflows/publish-crate.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
name: Publish Crate

on:
workflow_dispatch:
inputs:
version_bump:
description: "Version bump type"
required: true
type: choice
options:
- patch
- minor
- major

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GA_TOKEN }}
fetch-depth: 0

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install cargo-workspaces
run: cargo install cargo-workspaces

- name: Configure git
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "actions[bot]@github.com"

- name: Bump version
run: |
cd src/rust
cargo workspaces version ${{ github.event.inputs.version_bump }} --no-git-commit --yes

- name: Commit version bump
run: |
git add .
git commit -m "chore: bump crate version (${{ github.event.inputs.version_bump }})"
git push

- name: Configure cargo for publishing
run: |
mkdir -p ~/.cargo
echo "[net]" >> ~/.cargo/config.toml
echo "git-fetch-with-cli = true" >> ~/.cargo/config.toml

- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo publish --allow-dirty
40 changes: 40 additions & 0 deletions .github/workflows/publish-npm.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: Publish NPM Package

on: workflow_dispatch

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
token: ${{ secrets.GA_TOKEN }}
fetch-depth: 0

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "22"
registry-url: "https://registry.npmjs.org"

- name: Setup Rust
uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true

- name: Install wasm-pack
run: |
curl https://rustwasm.github.io/wasm-pack/installer/init.sh -sSf | sh

- name: Build WASM
run: |
wasm-pack build --target web --no-pack

- name: Publish to NPM
env:
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
run: |
cd pkg
npm publish --access public
Empty file removed js/.gitignore
Empty file.
21 changes: 0 additions & 21 deletions js/LICENSE

This file was deleted.

72 changes: 0 additions & 72 deletions js/README.md

This file was deleted.

62 changes: 0 additions & 62 deletions js/cjseq.d.ts

This file was deleted.

Loading
Loading