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
16 changes: 11 additions & 5 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,16 @@ jobs:
with:
fetch-depth: 0

- name: Setup Bun
uses: oven-sh/setup-bun@v1
- name: Setup Node
uses: actions/setup-node@v4
with:
bun-version: latest
node-version: 22.18.0
registry-url: https://registry.npmjs.org

- name: Enable corepack + pin pnpm
run: |
corepack enable
corepack prepare [email protected] --activate

- name: Install rust
uses: dtolnay/[email protected]
Expand All @@ -29,9 +35,9 @@ jobs:
version: 'latest'

- name: Install project dependencies
run: bun install
run: pnpm install --frozen-lockfile

- name: Lint
run: |
echo "Running workspace format check..."
NX_DAEMON=false bun run format:check
NX_DAEMON=false pnpm run format:check
85 changes: 0 additions & 85 deletions .github/workflows/prerelease.yml

This file was deleted.

28 changes: 21 additions & 7 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -1,19 +1,32 @@
name: Release
on:
push:
workflow_run:
workflows:
- E2E - Naga (matrix)
branches:
- naga
- canary-naga
types:
- completed

permissions:
# allow pushing commits, creating tags, and modifying repo files
# needed for the workflow to update package.json versions and CHANGELOG files
contents: write
pull-requests: write

concurrency:
group: release-${{ github.event.workflow_run.head_branch || github.event.workflow_run.head_sha }}
cancel-in-progress: false

jobs:
release:
runs-on: ubuntu-latest
if: >-
${{ github.event.workflow_run.conclusion == 'success' &&
github.event.workflow_run.event == 'push' &&
(github.event.workflow_run.head_branch == 'naga' ||
github.event.workflow_run.head_branch == 'canary-naga') }}
# Enable this when we want to implement docker image release
# outputs:
# published: ${{ steps.changesets.outputs.published }}
Expand All @@ -32,6 +45,7 @@ jobs:
uses: actions/checkout@v4
with:
fetch-depth: 0
ref: ${{ github.event.workflow_run.head_sha }}

- name: Setup PNPM
uses: pnpm/action-setup@v4
Expand All @@ -44,17 +58,19 @@ jobs:
toolchain: stable
override: true
components: rust-std

- name: Install wasm-pack
uses: jetli/[email protected]
with:
version: 'latest'
version: '0.12.1'

- name: Setup Node
uses: actions/setup-node@v4
with:
node-version: '22.18.0'
registry-url: 'https://registry.npmjs.org'
cache: 'pnpm'
cache-dependency-path: pnpm-lock.yaml

- name: Install project dependencies
run: pnpm install --frozen-lockfile
Expand All @@ -68,15 +84,13 @@ jobs:
echo "📋 Not in pre-release mode"
fi

- name: Build
run: pnpm build

- name: Create Release Pull Request or Publish to npm
id: changesets
uses: changesets/action@v1
with:
version: pnpm changeset version
publish: pnpm changeset publish --access public
# Build immediately before publishing so artifacts reflect the freshly bumped version
publish: pnpm build && pnpm changeset publish --access public
commit: 'chore(release): version packages'
title: 'chore(release): version packages'
env:
Expand Down
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf

```bash
// eg. naga-dev
NETWORK=<network-name> bun run test:e2e all
NETWORK=<network-name> pnpm run test:e2e all
```

# Running it against a local network
Expand All @@ -73,7 +73,7 @@ DIRECTORY_NAME=naga-local
## Command

```bash
NETWORK=naga-local bun run test:e2e all
NETWORK=naga-local pnpm run test:e2e all
```

# Manual Publishing
Expand All @@ -86,7 +86,7 @@ pnpm changeset
pnpm changeset version

# Build the packages
bun run build
pnpm build

# Commit the changes
git add .
Expand Down
2 changes: 1 addition & 1 deletion packages/e2e/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ A comprehensive end-to-end testing package for Lit Protocol integrations. This p
## Installation

```bash
bun install @litprotocol/e2e
pnpm add @litprotocol/e2e
```

## Environment Variables
Expand Down
Loading