Skip to content

Commit 3e63754

Browse files
authored
Merge pull request #927 from LIT-Protocol/chore/replace-bun-commands-to-pnpm
chore: switch lint workflow to pnpm and update e2e install docs
2 parents 745b368 + aec81fe commit 3e63754

File tree

5 files changed

+36
-101
lines changed

5 files changed

+36
-101
lines changed

.github/workflows/lint.yml

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,16 @@ jobs:
1515
with:
1616
fetch-depth: 0
1717

18-
- name: Setup Bun
19-
uses: oven-sh/setup-bun@v1
18+
- name: Setup Node
19+
uses: actions/setup-node@v4
2020
with:
21-
bun-version: latest
21+
node-version: 22.18.0
22+
registry-url: https://registry.npmjs.org
23+
24+
- name: Enable corepack + pin pnpm
25+
run: |
26+
corepack enable
27+
corepack prepare [email protected] --activate
2228
2329
- name: Install rust
2430
uses: dtolnay/[email protected]
@@ -29,9 +35,9 @@ jobs:
2935
version: 'latest'
3036

3137
- name: Install project dependencies
32-
run: bun install
38+
run: pnpm install --frozen-lockfile
3339

3440
- name: Lint
3541
run: |
3642
echo "Running workspace format check..."
37-
NX_DAEMON=false bun run format:check
43+
NX_DAEMON=false pnpm run format:check

.github/workflows/prerelease.yml

Lines changed: 0 additions & 85 deletions
This file was deleted.

.github/workflows/release.yml

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,32 @@
11
name: Release
22
on:
3-
push:
3+
workflow_run:
4+
workflows:
5+
- E2E - Naga (matrix)
46
branches:
57
- naga
68
- canary-naga
9+
types:
10+
- completed
711

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

18+
concurrency:
19+
group: release-${{ github.event.workflow_run.head_branch || github.event.workflow_run.head_sha }}
20+
cancel-in-progress: false
21+
1422
jobs:
1523
release:
1624
runs-on: ubuntu-latest
25+
if: >-
26+
${{ github.event.workflow_run.conclusion == 'success' &&
27+
github.event.workflow_run.event == 'push' &&
28+
(github.event.workflow_run.head_branch == 'naga' ||
29+
github.event.workflow_run.head_branch == 'canary-naga') }}
1730
# Enable this when we want to implement docker image release
1831
# outputs:
1932
# published: ${{ steps.changesets.outputs.published }}
@@ -32,6 +45,7 @@ jobs:
3245
uses: actions/checkout@v4
3346
with:
3447
fetch-depth: 0
48+
ref: ${{ github.event.workflow_run.head_sha }}
3549

3650
- name: Setup PNPM
3751
uses: pnpm/action-setup@v4
@@ -44,17 +58,19 @@ jobs:
4458
toolchain: stable
4559
override: true
4660
components: rust-std
47-
61+
4862
- name: Install wasm-pack
4963
uses: jetli/[email protected]
5064
with:
51-
version: 'latest'
65+
version: '0.12.1'
5266

5367
- name: Setup Node
5468
uses: actions/setup-node@v4
5569
with:
5670
node-version: '22.18.0'
5771
registry-url: 'https://registry.npmjs.org'
72+
cache: 'pnpm'
73+
cache-dependency-path: pnpm-lock.yaml
5874

5975
- name: Install project dependencies
6076
run: pnpm install --frozen-lockfile
@@ -68,15 +84,13 @@ jobs:
6884
echo "📋 Not in pre-release mode"
6985
fi
7086
71-
- name: Build
72-
run: pnpm build
73-
7487
- name: Create Release Pull Request or Publish to npm
7588
id: changesets
7689
uses: changesets/action@v1
7790
with:
7891
version: pnpm changeset version
79-
publish: pnpm changeset publish --access public
92+
# Build immediately before publishing so artifacts reflect the freshly bumped version
93+
publish: pnpm build && pnpm changeset publish --access public
8094
commit: 'chore(release): version packages'
8195
title: 'chore(release): version packages'
8296
env:

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ LOCAL_MASTER_ACCOUNT=0xac0974bec39a17e36ba4a6b4d238ff944bacb478cbed5efcae784d7bf
5252

5353
```bash
5454
// eg. naga-dev
55-
NETWORK=<network-name> bun run test:e2e all
55+
NETWORK=<network-name> pnpm run test:e2e all
5656
```
5757

5858
# Running it against a local network
@@ -73,7 +73,7 @@ DIRECTORY_NAME=naga-local
7373
## Command
7474

7575
```bash
76-
NETWORK=naga-local bun run test:e2e all
76+
NETWORK=naga-local pnpm run test:e2e all
7777
```
7878

7979
# Manual Publishing
@@ -86,7 +86,7 @@ pnpm changeset
8686
pnpm changeset version
8787

8888
# Build the packages
89-
bun run build
89+
pnpm build
9090

9191
# Commit the changes
9292
git add .

packages/e2e/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ A comprehensive end-to-end testing package for Lit Protocol integrations. This p
55
## Installation
66

77
```bash
8-
bun install @litprotocol/e2e
8+
pnpm add @litprotocol/e2e
99
```
1010

1111
## Environment Variables

0 commit comments

Comments
 (0)