Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
73 commits
Select commit Hold shift + click to select a range
3488b88
Rename OrderBook to Raindex in src/ and script/
thedavidmeister Mar 25, 2026
72e39b2
Rename OrderBook to Raindex in test/
thedavidmeister Mar 26, 2026
90c410e
Rename OrderBook to Raindex in Rust workspace
thedavidmeister Mar 26, 2026
1807c4e
Bump YAML spec version to 6 for raindex key renames
thedavidmeister Mar 26, 2026
dcab78a
Fix remaining Orderbook references in dotrain_order and js_api
thedavidmeister Mar 26, 2026
d744018
Rename OrderBook to Raindex in config files
thedavidmeister Mar 26, 2026
b1cfa28
Rename packages/orderbook to packages/raindex
thedavidmeister Mar 26, 2026
6400ec9
Rename OrderBook to Raindex in UI components and packages
thedavidmeister Mar 27, 2026
81cda00
Rename OrderBook to Raindex in subgraph
thedavidmeister Mar 30, 2026
0a0904c
Rename OrderBook to Raindex in Rust crates and UI components
thedavidmeister Mar 30, 2026
c9b2b41
Fix easy audit findings and move remaining to GitHub issues
thedavidmeister Mar 30, 2026
0b9ae4d
Delete audit markdown files
thedavidmeister Mar 30, 2026
5ee060f
Fix networks.json key references in Solidity tests
thedavidmeister Mar 30, 2026
b0ad160
Rename OrderBook to Raindex in small crates, CI, and docs
thedavidmeister Mar 30, 2026
8b4782b
Rename OrderBook to Raindex in packages/webapp and packages/raindex
thedavidmeister Mar 31, 2026
a6169c8
Rename OrderBook to Raindex in crates/common
thedavidmeister Mar 31, 2026
0a0f000
Rename OrderBook to Raindex in subgraph, quote, settings, cli, js_api…
thedavidmeister Mar 31, 2026
3f4566a
Rename OrderBook to Raindex in packages/ui-components
thedavidmeister Mar 31, 2026
9c7ae96
Rename remaining OrderBook references across all crates
thedavidmeister Mar 31, 2026
cf92751
Rename OrderBook to Raindex in packages/raindex test assertions
thedavidmeister Mar 31, 2026
05ff975
Rename orderbook to raindex in test resource JSON fixtures
thedavidmeister Mar 31, 2026
d8586a2
Rename OrderBook to Raindex in build scripts and README
thedavidmeister Mar 31, 2026
edaa3e9
Remove stale OrderBook rename note from foundry.toml
thedavidmeister Mar 31, 2026
85ed352
Regenerate package-lock.json for raindex package rename
thedavidmeister Mar 31, 2026
a8218c6
Regenerate sub-parser pointers for raindex word rename
thedavidmeister Mar 31, 2026
c2c0e73
Regenerate gas snapshot with renamed contracts
thedavidmeister Mar 31, 2026
028ece0
Fix spelling, stale comments, and ob-yaml URL references
thedavidmeister Mar 31, 2026
0ec04e5
Rename ob- Nix commands to raindex- prefixes
thedavidmeister Mar 31, 2026
43afd9a
wip on bumping dep
thedavidmeister Apr 1, 2026
1566699
Rename ob test fixture keys to raindex
thedavidmeister Apr 1, 2026
9489767
Rename src/concrete/ob/ and test/concrete/ob/ to raindex/
thedavidmeister Apr 1, 2026
8ad99da
Rename OB to Raindex in test comments and assert messages
thedavidmeister Apr 1, 2026
631360c
Rename ob variable names to raindex across Rust and Solidity
thedavidmeister Apr 1, 2026
dc19ddd
Rename ob_id to raindex_id and fix remaining ob variable names
thedavidmeister Apr 1, 2026
65174cb
Update rain.raindex.interface submodule (audit MDs deleted)
thedavidmeister Apr 1, 2026
2380b63
Rename Goldsky subgraph name from ob4 to raindex
thedavidmeister Apr 1, 2026
518ee97
Run cargo fmt
thedavidmeister Apr 1, 2026
49eb1c8
Run forge fmt
thedavidmeister Apr 1, 2026
3c6326d
Update test fixtures to DB schema version 3
thedavidmeister Apr 1, 2026
be021eb
Update serialized state snapshots for renamed fields
thedavidmeister Apr 1, 2026
a028d1a
Fix test assertions for DB schema version 3 and YAML version 6
thedavidmeister Apr 1, 2026
b406ea0
Fix CLI short option conflict and manifest version assertions
thedavidmeister Apr 2, 2026
e9bca4e
Remove short flag from raindex_address CLI arg to avoid conflicts
thedavidmeister Apr 2, 2026
14e1a2a
Use main deployment key for deterministic deploys on all branches
thedavidmeister Apr 2, 2026
a99e3e5
Run prettier on ui-components
thedavidmeister Apr 2, 2026
2a9c1ed
Run prettier on webapp
thedavidmeister Apr 2, 2026
c72dc97
Update settings.yaml fixture to version 6
thedavidmeister Apr 2, 2026
5daff74
Update RAINLANG_URL to v6 strategies registry
thedavidmeister Apr 4, 2026
aad9f12
Merge remote-tracking branch 'origin/main' into rename-orderbook-to-r…
thedavidmeister Apr 28, 2026
a5a6fc7
fix: restore implicit self in flake outputs via ...
thedavidmeister Apr 28, 2026
bb5f790
fix: complete orderbook->raindex rename in rust crate references
thedavidmeister Apr 28, 2026
bc6aabd
fix: rename OrderbookIdentifier and CHAIN_ID_1_ORDERBOOK_ADDRESS in s…
thedavidmeister Apr 29, 2026
4874ca2
fix: rename orderbook->raindex in mock JSON for test_build_candidate_…
thedavidmeister Apr 29, 2026
a20956c
fix: identify batch-manifest-fetch failures with the configured raindex
thedavidmeister May 4, 2026
b8f0247
fix: drop consumer-side prettier invocations and configs (rainix #120)
thedavidmeister May 4, 2026
d6f80d9
Update strategies registry hash
findolor May 5, 2026
64ea757
Merge remote-tracking branch 'origin/main' into rename-orderbook-to-r…
thedavidmeister May 9, 2026
b6bb8b1
Merge remote-tracking branch 'origin/main' into rename-orderbook-to-r…
thedavidmeister May 9, 2026
cd59b55
fix: complete orderbook->raindex rename in merged trade-by-tx and tra…
thedavidmeister May 9, 2026
40e9d81
fix: rename remaining ob_id->raindex_id leaks and align trade detail …
thedavidmeister May 9, 2026
3c5e4b4
fix: remove orphan getTradeCount test merged from pre-2497 branch
thedavidmeister May 9, 2026
0ffb168
Merge remote-tracking branch 'origin/main' into rename-orderbook-to-r…
May 19, 2026
e4d79c6
fix: regenerate lockfiles to match main + workspace renames
May 19, 2026
cd18389
fix: complete orderbook->raindex rename in code merged from main
May 19, 2026
1a72e25
fix: rename ob4-* Goldsky subgraph URLs in test fixtures and doc exam…
May 19, 2026
ca3fd0f
fix: restore accidentally truncated crates/subgraph/src/raindex_clien…
May 19, 2026
710c299
fix: restore multi_raindex_client.rs from main with rename applied
May 20, 2026
90b6364
fix: update SERIALIZED_STATE constant + version=6 in state_management…
thedavidmeister May 20, 2026
31a2126
fix: update test-js-bindings serializedState constant for rename
thedavidmeister May 20, 2026
6ae3274
fix: re-run prettier on packages/ui-components/src
thedavidmeister May 20, 2026
fbab477
fix: clean up stale prettier entries in package-lock.json
thedavidmeister May 20, 2026
e764d9d
fix: bump REGISTRY_URL to rain.strategies v6+raindexes+builder commit…
thedavidmeister May 20, 2026
5fc5209
fix: bump REGISTRY_URL to 805c3097 (rain.strategies#106)
thedavidmeister May 20, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .devcontainer.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "rain.orderbook dev",
"name": "raindex dev",
"image": "ghcr.io/zombiezen/codespaces-nix",
"remoteUser": "vscode",
"features": {
Expand Down
620 changes: 359 additions & 261 deletions .gas-snapshot

Large diffs are not rendered by default.

16 changes: 8 additions & 8 deletions .github/copilot-instructions.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
> NOTE: Before using this guide, read the repository root `AGENTS.md` for authoritative agent instructions.

# Rain Orderbook – Agent Guide (Concise)
# Raindex – Agent Guide (Concise)

Always run commands via Nix: `nix develop -c <command>`. Never cancel long-running tasks (45–90 min builds, 30+ min tests).

## 1. Dependency readiness (quick check)
```bash
nix develop -c cargo build
nix develop -c cargo build --target wasm32-unknown-unknown --lib -r --workspace \
--exclude rain_orderbook_cli --exclude rain_orderbook_integration_tests
--exclude raindex_cli --exclude raindex_integration_tests
nix develop -c npm install
nix develop -c npm run build:orderbook
nix develop -c npm run build:raindex
nix develop -c npm run build:ui
```

Expand All @@ -19,7 +19,7 @@ If any step fails due to earlier lint/test issues, use the fallback below.
## 2. Development loop
- Edit code
- Rebuild dependencies you touched:
- Rust used by `@rainlanguage/orderbook` → `nix develop -c npm run build:orderbook`
- Rust used by `@rainlanguage/raindex` → `nix develop -c npm run build:raindex`
- `@rainlanguage/ui-components` → `nix develop -c npm run build -w @rainlanguage/ui-components`
- Run targeted tests and lints for changed areas

Expand All @@ -28,7 +28,7 @@ If any step fails due to earlier lint/test issues, use the fallback below.
| Area | Build (if needed) | Lint/Check | Tests |
|------|--------------------|------------|-------|
| Rust crates (`crates/*`) | `nix develop -c cargo build` | `nix develop -c cargo clippy --workspace --all-targets --all-features -D warnings` | `nix develop -c cargo test --workspace` or `--package <crate>` |
| Orderbook TS (`packages/orderbook`) | `nix develop -c npm run build:orderbook` | `nix develop -c npm run check -w @rainlanguage/orderbook` | `nix develop -c npm run test -w @rainlanguage/orderbook` |
| Raindex TS (`packages/raindex`) | `nix develop -c npm run build:raindex` | `nix develop -c npm run check -w @rainlanguage/raindex` | `nix develop -c npm run test -w @rainlanguage/raindex` |
| UI components (`packages/ui-components`) | `nix develop -c npm run build -w @rainlanguage/ui-components` | `nix develop -c npm run svelte-lint-format-check -w @rainlanguage/ui-components` | `nix develop -c npm run test -w @rainlanguage/ui-components` |
| Webapp (`packages/webapp`) | `nix develop -c npm run build -w @rainlanguage/webapp` | `nix develop -c npm run svelte-lint-format-check -w @rainlanguage/webapp` | `nix develop -c npm run test -w @rainlanguage/webapp` |
| Solidity contracts | `nix develop -c forge build` | — | `nix develop -c forge test` |
Expand All @@ -48,7 +48,7 @@ Partial commits are OK during the session. Before your final commit of the sessi
```bash
./prep-all.sh
nix develop -c npm run lint-format-check:all
nix develop -c npm run build:orderbook # if Rust/orderbook changed
nix develop -c npm run build:raindex # if Rust/raindex changed
nix develop -c npm run build:ui
nix develop -c cargo test --workspace
nix develop -c npm run test
Expand All @@ -71,8 +71,8 @@ nix develop -c bash -c '(cd lib/rain.interpreter && rainix-sol-prelude && rainix
nix develop -c bash -c '(cd lib/rain.interpreter/lib/rain.interpreter.interface/lib/rain.math.float && rainix-sol-prelude && rainix-rs-prelude)'
nix develop -c bash -c '(cd lib/rain.interpreter/lib/rain.metadata && rainix-sol-prelude && rainix-rs-prelude)'
nix develop -c rainix-sol-prelude && nix develop -c rainix-rs-prelude && nix develop -c raindex-prelude
nix develop -c ob-ui-components-prelude
nix develop -c npm run build -w @rainlanguage/orderbook
nix develop -c raindex-ui-components-prelude
nix develop -c npm run build -w @rainlanguage/raindex
nix develop -c npm run build -w @rainlanguage/ui-components
nix develop -c npm run build -w @rainlanguage/webapp
```
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/deploy-subgraph.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ jobs:
runs-on: ubuntu-latest
env:
GOLDSKY_TOKEN: ${{ secrets.CI_GOLDSKY_TOKEN }}
GOLDSKY_SUBGRAPH_NAME: ob4
GOLDSKY_SUBGRAPH_NAME: raindex
steps:
- uses: actions/checkout@v4
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/manual-sol-artifacts.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ jobs:
env:
DEPLOYMENT_SUITE: ${{ inputs.suite }}
DEPLOY_BROADCAST: "1"
DEPLOYMENT_KEY: ${{ github.ref == 'refs/heads/main' && secrets.PRIVATE_KEY || secrets.PRIVATE_KEY_DEV }}
DEPLOYMENT_KEY: ${{ secrets.PRIVATE_KEY }}
ETH_RPC_URL: ${{ secrets.CI_DEPLOY_BASE_RPC_URL || vars.CI_DEPLOY_BASE_RPC_URL || '' }}

CI_DEPLOY_ARBITRUM_RPC_URL: ${{ secrets.CI_DEPLOY_ARBITRUM_RPC_URL || vars.CI_DEPLOY_ARBITRUM_RPC_URL || '' }}
Expand Down
96 changes: 32 additions & 64 deletions .github/workflows/npm-package-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ on:
push:
branches:
- main

jobs:
release:
# skip this job if the commit was created by this workflow (prevents infinite loop)
Expand All @@ -14,7 +13,6 @@ jobs:
contents: write
env:
DEPLOYMENT_KEY: ${{ secrets.PRIVATE_KEY }}

CI_FORK_SEPOLIA_BLOCK_NUMBER: ${{ vars.CI_FORK_SEPOLIA_BLOCK_NUMBER }}
CI_FORK_SEPOLIA_DEPLOYER_ADDRESS: ${{ vars.CI_FORK_SEPOLIA_DEPLOYER_ADDRESS }}
CI_DEPLOY_SEPOLIA_RPC_URL: ${{ secrets.CI_DEPLOY_SEPOLIA_RPC_URL || vars.CI_DEPLOY_SEPOLIA_RPC_URL }}
Expand All @@ -33,33 +31,28 @@ jobs:
- uses: actions/checkout@v4
with:
ssh-key: ${{ secrets.PUBLISH_PRIVATE_KEY }}

# WASM builds require significant disk space; free up space to prevent build failures
- name: Free disk space
uses: jlumbroso/free-disk-space@v1.3.1
with:
swap-storage: false

# install nix for building WASM artifacts and running tests
- uses: DeterminateSystems/nix-installer-action@main
with:
determinate: true
# cache nix store to speed up subsequent builds
- uses: DeterminateSystems/flakehub-cache-action@main

# setup node with npm registry for OIDC-based publishing (no NPM_TOKEN needed)
- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "24.x"
registry-url: "https://registry.npmjs.org"

# npm 10.9+ required for OIDC provenance support
- name: Upgrade npm for OIDC
run: |
npm install -g npm@latest
npm --version

# ensure GitHub Actions OIDC token is available for npm provenance attestation
- name: Verify OIDC availability
run: |
Expand All @@ -71,20 +64,19 @@ jobs:
echo "Check workflow permissions include 'id-token: write'"
exit 1
fi

# npm OIDC publish requires package.json repository URL to match git remote
# mismatch causes 422 error during publish
- name: Verify repository configuration
run: |
echo "Checking repository consistency..."
GIT_REPO=$(git remote get-url origin | sed 's/.*github.com[/:]//; s/.git$//')
OB_PKG_REPO=$(node -e "console.log(require('./packages/orderbook/package.json').repository?.url || '')" | sed 's|https://github.com/||; s|git+||; s|.git$||')
DEX_PKG_REPO=$(node -e "console.log(require('./packages/raindex/package.json').repository?.url || '')" | sed 's|https://github.com/||; s|git+||; s|.git$||')
UC_PKG_REPO=$(node -e "console.log(require('./packages/ui-components/package.json').repository?.url || '')" | sed 's|https://github.com/||; s|git+||; s|.git$||')
echo "Git remote: $GIT_REPO"
echo "orderbook package.json: $OB_PKG_REPO"
echo "raindex package.json: $DEX_PKG_REPO"
echo "ui-components package.json: $UC_PKG_REPO"
if [ "$GIT_REPO" != "$OB_PKG_REPO" ]; then
echo "Repository mismatch for orderbook!"
if [ "$GIT_REPO" != "$DEX_PKG_REPO" ]; then
echo "Repository mismatch for raindex!"
echo "This will cause 422 error during publish"
exit 1
fi
Expand All @@ -94,14 +86,11 @@ jobs:
exit 1
fi
echo "Repositories match"

# install dependencies and build the workspace
- run: ./prep-base.sh

# remove debug artifacts to free disk space before WASM build
- name: Remove Unused Artifacts
run: rm -rf ./target/debug

# WASM linker can run out of memory on GitHub runners; add swap to prevent OOM
- name: Add swap space
run: |
Expand All @@ -113,110 +102,93 @@ jobs:
sudo chmod 600 /swapfile
sudo mkswap /swapfile
sudo swapon /swapfile

# build and test WASM bindings
- name: Test JS/TS Binding 1/2
run: nix develop -c rainix-wasm-test

# cleanup between test phases to prevent disk space exhaustion
- name: Remove Test Artifacts
run: |
rm -rf ./target/debug
rm -rf ./target/wasm32-unknown-unknown/debug

# run JS/TS integration tests against WASM bindings
- name: Test JS/TS Binding 2/2
run: nix develop -c test-js-bindings

# build and test UI components before publishing
- name: Build UI Components
run: nix develop -c npm run build -w @rainlanguage/ui-components
- name: Test UI Components
run: nix develop -c npm run test -w @rainlanguage/ui-components

# check for npm package blacklists pkgs across all orderbook related packages
# check for npm package blacklists pkgs across all raindex related packages
- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main

- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
working-directory: packages/orderbook

working-directory: packages/raindex
- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
working-directory: packages/ui-components

# configure git identity for version bump commits
- name: Git Config
run: |
git config --global user.email "${{ secrets.CI_GIT_EMAIL }}"
git config --global user.name "${{ secrets.CI_GIT_USER }}"

# get hash of latest published pkgs from npm and concat them
- name: Get Old Hash
run: |
OB_PKG_OLD_HASH=$(npm view @rainlanguage/orderbook@latest dist.shasum 2>/dev/null || echo "none")
DEX_PKG_OLD_HASH=$(npm view @rainlanguage/raindex@latest dist.shasum 2>/dev/null || echo "none")
UC_PKG_OLD_HASH=$(npm view @rainlanguage/ui-components@latest dist.shasum 2>/dev/null || echo "none")
OLD_HASH=$OB_PKG_OLD_HASH-$UC_PKG_OLD_HASH
OLD_HASH=$DEX_PKG_OLD_HASH-$UC_PKG_OLD_HASH
echo "OLD_HASH=$OLD_HASH" >> $GITHUB_ENV
echo "old hash: $OLD_HASH"

# calc hash of current workspace pkgs by packing them and concat them
- name: Get New Hash
run: |
OB_PKG_NEW_HASH=$(npm pack --silent -w @rainlanguage/orderbook | xargs shasum | cut -c1-40)
DEX_PKG_NEW_HASH=$(npm pack --silent -w @rainlanguage/raindex | xargs shasum | cut -c1-40)
UC_PKG_NEW_HASH=$(npm pack --silent -w @rainlanguage/ui-components | xargs shasum | cut -c1-40)
NEW_HASH=$OB_PKG_NEW_HASH-$UC_PKG_NEW_HASH
NEW_HASH=$DEX_PKG_NEW_HASH-$UC_PKG_NEW_HASH
echo "NEW_HASH=$NEW_HASH" >> $GITHUB_ENV
echo "new hash: $NEW_HASH"
rm -f *.tgz

# from here on, we'll skip if OLD_HASH and NEW_HASH are the same (ie no publish)
# this means we need to skip every step by using an if statement.
# set npm package versions independently
- name: Set Version
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: |
npm version prerelease --preid alpha --no-git-tag-version -w @rainlanguage/orderbook
OB_NEW_VERSION=$(jq -r '.version' ./packages/orderbook/package.json)
echo "OB_NEW_VERSION=$OB_NEW_VERSION" >> $GITHUB_ENV
jq --arg ob "$OB_NEW_VERSION" '.dependencies."@rainlanguage/orderbook" = $ob' ./packages/ui-components/package.json > tmp.json && mv tmp.json ./packages/ui-components/package.json
npm version prerelease --preid alpha --no-git-tag-version -w @rainlanguage/raindex
RAINDEX_NEW_VERSION=$(jq -r '.version' ./packages/raindex/package.json)
echo "RAINDEX_NEW_VERSION=$RAINDEX_NEW_VERSION" >> $GITHUB_ENV
jq --arg v "$RAINDEX_NEW_VERSION" '.dependencies."@rainlanguage/raindex" = $v' ./packages/ui-components/package.json > tmp.json && mv tmp.json ./packages/ui-components/package.json
npx prettier --write ./packages/ui-components/package.json
npm version prerelease --preid alpha --no-git-tag-version -w @rainlanguage/ui-components
UC_NEW_VERSION=$(jq -r '.version' ./packages/ui-components/package.json)
echo "UC_NEW_VERSION=$UC_NEW_VERSION" >> $GITHUB_ENV
jq --indent 4 --arg ob "$OB_NEW_VERSION" --arg uc "$UC_NEW_VERSION" '
.packages."packages/orderbook".version = $ob |
jq --indent 4 --arg rd "$RAINDEX_NEW_VERSION" --arg uc "$UC_NEW_VERSION" '
.packages."packages/raindex".version = $rd |
.packages."packages/ui-components".version = $uc |
.packages."packages/ui-components".dependencies."@rainlanguage/orderbook" = $ob
.packages."packages/ui-components".dependencies."@rainlanguage/raindex" = $rd
' ./package-lock.json > tmp.json && mv tmp.json ./package-lock.json

# Create orderbook npm package tarball
- name: Create orderbook NPM Package Tarball
# Create raindex npm package tarball
- name: Create raindex NPM Package Tarball
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: echo "OB_NPM_PACKAGE=$(npm pack --silent -w @rainlanguage/orderbook)" >> $GITHUB_ENV

- name: Rename orderbook NPM Package Tarball
run: echo "RAINDEX_NPM_PACKAGE=$(npm pack --silent -w @rainlanguage/raindex)" >> $GITHUB_ENV
- name: Rename raindex NPM Package Tarball
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: mv ${{ env.OB_NPM_PACKAGE }} orderbook_npm_package_${{ env.OB_NEW_VERSION }}.tgz

# publish orderbook pkg to npm
- name: Publish orderbook pkg To NPM
run: mv ${{ env.RAINDEX_NPM_PACKAGE }} raindex_npm_package_${{ env.RAINDEX_NEW_VERSION }}.tgz
# publish raindex pkg to npm
- name: Publish raindex pkg To NPM
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: |
npm publish orderbook_npm_package_${{ env.OB_NEW_VERSION }}.tgz \
npm publish raindex_npm_package_${{ env.RAINDEX_NEW_VERSION }}.tgz \
--access public \
--tag latest \
--verbose

# Create npm package tarball for ui-components
- name: Create ui-components NPM Package Tarball
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: echo "UC_NPM_PACKAGE=$(npm pack --silent -w @rainlanguage/ui-components)" >> $GITHUB_ENV

- name: Rename ui-components NPM Package Tarball
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: mv ${{ env.UC_NPM_PACKAGE }} ui_components_npm_package_${{ env.UC_NEW_VERSION }}.tgz

# publish ui-components to npm
- name: Publish ui-components To NPM
if: ${{ env.OLD_HASH != env.NEW_HASH }}
Expand All @@ -225,40 +197,36 @@ jobs:
--access public \
--tag latest \
--verbose

# Commit changes and tag
- name: Commit And Tag
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: |
git add "packages/orderbook/package.json"
git add "packages/raindex/package.json"
git add "packages/ui-components/package.json"
git add "package-lock.json"
git commit -m "NPM Package Release orderbook v${{ env.OB_NEW_VERSION }} ui-components v${{ env.UC_NEW_VERSION }}"
git tag "npm-ob-v${{ env.OB_NEW_VERSION }}-uc-v${{ env.UC_NEW_VERSION }}"

git commit -m "NPM Package Release raindex v${{ env.RAINDEX_NEW_VERSION }} ui-components v${{ env.UC_NEW_VERSION }}"
git tag "npm-raindex-v${{ env.RAINDEX_NEW_VERSION }}-uc-v${{ env.UC_NEW_VERSION }}"
# Push the commit to remote
- name: Push Changes To Remote
if: ${{ env.OLD_HASH != env.NEW_HASH }}
run: |
git push origin
git push -u origin "npm-ob-v${{ env.OB_NEW_VERSION }}-uc-v${{ env.UC_NEW_VERSION }}"
git push -u origin "npm-raindex-v${{ env.RAINDEX_NEW_VERSION }}-uc-v${{ env.UC_NEW_VERSION }}"
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# Create gitHub release with tarballs
- name: Create GitHub Release
if: ${{ env.OLD_HASH != env.NEW_HASH }}
id: gh_release
uses: softprops/action-gh-release@v2
with:
tag_name: npm-ob-v${{ env.OB_NEW_VERSION }}-uc-v${{ env.UC_NEW_VERSION }}
name: NPM Package Release orderbook v${{ env.OB_NEW_VERSION }} ui-components v${{ env.UC_NEW_VERSION }}
tag_name: npm-raindex-v${{ env.RAINDEX_NEW_VERSION }}-uc-v${{ env.UC_NEW_VERSION }}
name: NPM Package Release raindex v${{ env.RAINDEX_NEW_VERSION }} ui-components v${{ env.UC_NEW_VERSION }}
files: |
orderbook_npm_package_${{ env.OB_NEW_VERSION }}.tgz
raindex_npm_package_${{ env.RAINDEX_NEW_VERSION }}.tgz
ui_components_npm_package_${{ env.UC_NEW_VERSION }}.tgz
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

# forwards status to telegram chat if this ci fails or gets canceled, only runs for default branch
- name: Forward CI Status
if: always()
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/rainix.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ jobs:
strategy:
matrix:
os: [ubuntu-latest, macos-latest]
task: [ob-rs-test, rainix-rs-artifacts]
task: [raindex-rs-test, rainix-rs-artifacts]
is-not-main:
- ${{ github.ref != 'refs/heads/main' }}
include:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-ui-components.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ jobs:

- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
working-directory: packages/orderbook
working-directory: packages/raindex

- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test-webapp.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ jobs:

- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
working-directory: packages/orderbook
working-directory: packages/raindex

- uses: rainlanguage/github-chore/.github/actions/npm-blacklist@main
with:
Expand Down
Loading
Loading