Skip to content

Commit 869783f

Browse files
Merge branch 'main' into feat/wallet-connect-initialize
2 parents dbf18e2 + 6239566 commit 869783f

17 files changed

Lines changed: 140 additions & 161 deletions

File tree

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "check-code"
2+
description: "run linting and type checking"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- run: npm run lint
8+
shell: bash
9+
- run: npm run types
10+
shell: bash
11+
- run: npm run typecheck
12+
shell: bash

.github/actions/code-checks/action.yml

Lines changed: 0 additions & 17 deletions
This file was deleted.
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
name: "install-node"
2+
description: "setup node environment and install dependencies"
3+
4+
runs:
5+
using: "composite"
6+
steps:
7+
- uses: actions/setup-node@v4
8+
with:
9+
node-version: "24"
10+
cache: "npm"
11+
- run: npm ci
12+
shell: bash

.github/workflows/pre-run.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: pre-run
2+
3+
on:
4+
workflow_call:
5+
outputs:
6+
is-not-fork:
7+
description: "is the repository the original project"
8+
value: ${{ jobs.check-fork.outputs.is_not_fork }}
9+
workflow_dispatch:
10+
11+
permissions:
12+
contents: read
13+
14+
jobs:
15+
check-fork:
16+
runs-on: ubuntu-latest
17+
outputs:
18+
is_not_fork: ${{ steps.check.outputs.is_not_fork }}
19+
steps:
20+
- id: check
21+
run: echo "is_not_fork=${{ github.repository_owner == 'stx-labs' }}" >> "$GITHUB_OUTPUT"

.github/workflows/publish.yml

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Publish
1+
name: publish
2+
23
on:
34
push:
45
branches:
@@ -8,18 +9,15 @@ on:
89
permissions:
910
id-token: write # Required for OIDC
1011
contents: write
11-
pull-requests: write
12+
13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
1215

1316
jobs:
14-
publish_npm:
15-
name: Publish production NPM packages
17+
publish-npm:
1618
runs-on: ubuntu-latest
1719
if: "contains(github.event.head_commit.message, 'chore: version packages')"
1820
steps:
1921
- uses: actions/checkout@v4
20-
- uses: actions/setup-node@v4
21-
with:
22-
node-version: "24"
23-
cache: "npm"
24-
- run: npm ci
22+
- uses: ./.github/actions/install-node
2523
- run: npx lerna publish from-package --yes

.github/workflows/pull-request.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: pull-request
2+
3+
on:
4+
pull_request:
5+
workflow_dispatch:
6+
7+
permissions:
8+
contents: read
9+
10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.event.pull_request.number || github.ref }}
12+
cancel-in-progress: true
13+
14+
jobs:
15+
pre-run:
16+
uses: ./.github/workflows/pre-run.yml
17+
18+
commitlint:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- uses: actions/checkout@v4
22+
- uses: wagoid/commitlint-github-action@b948419dd99f3fd78a6548d48f94e3df7f6bf3ed # 6.2.1
23+
24+
code-checks:
25+
runs-on: ubuntu-latest
26+
steps:
27+
- uses: actions/checkout@v4
28+
- uses: ./.github/actions/install-node
29+
- uses: ./.github/actions/check-code

.github/workflows/pull_request.yml

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

.github/workflows/version.yml

Lines changed: 23 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
name: Version
1+
name: version
2+
23
on:
34
push:
45
branches:
@@ -9,34 +10,30 @@ permissions:
910
contents: write
1011
pull-requests: write
1112

13+
concurrency:
14+
group: ${{ github.workflow }}-${{ github.ref }}
15+
1216
jobs:
13-
code_checks:
14-
name: Code checks
17+
code-checks:
1518
if: "!contains(github.event.head_commit.message, 'chore: version packages')"
1619
runs-on: ubuntu-latest
1720
steps:
1821
- uses: actions/checkout@v4
19-
- uses: actions/setup-node@v4
20-
with:
21-
node-version: "24"
22-
cache: "npm"
23-
- uses: ./.github/actions/code-checks
22+
- uses: ./.github/actions/install-node
23+
- uses: ./.github/actions/check-code
2424

25-
version:
26-
runs-on: ubuntu-latest
27-
if: "!contains(github.event.head_commit.message, 'chore: version packages')"
28-
needs: [code_checks]
29-
steps:
30-
- uses: actions/checkout@v4
31-
- uses: actions/setup-node@v4
32-
with:
33-
node-version: "24"
34-
cache: "npm"
35-
- run: npm ci
36-
- uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba
37-
with:
38-
title: "chore: version packages"
39-
commit: "chore: version packages"
40-
commitMode: "github-api"
41-
env:
42-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
25+
# TODO: RE-ENABLE VERSION WHEN PERMISSIONS ARE FIXED
26+
# version:
27+
# runs-on: ubuntu-latest
28+
# if: "!contains(github.event.head_commit.message, 'chore: version packages')"
29+
# needs: [code-checks]
30+
# steps:
31+
# - uses: actions/checkout@v4
32+
# - uses: ./.github/actions/install-node
33+
# - uses: changesets/action@e0145edc7d9d8679003495b11f87bd8ef63c0cba
34+
# with:
35+
# title: "chore: version packages"
36+
# commit: "chore: version packages"
37+
# commitMode: "github-api"
38+
# env:
39+
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

packages/connect-react/CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# Change Log
22

3+
## 23.1.4
4+
5+
### Patch Changes
6+
7+
- Updated dependencies [9cd2aa8]
8+
- @stacks/connect@8.2.4
9+
310
## 23.1.3
411

512
### Patch Changes

packages/connect-react/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@stacks/connect-react",
3-
"version": "23.1.3",
3+
"version": "23.1.4",
44
"license": "MIT",
55
"repository": {
66
"type": "git",
@@ -13,7 +13,7 @@
1313
"types": "tsc --project tsconfig.json --emitDeclarationOnly"
1414
},
1515
"dependencies": {
16-
"@stacks/connect": "8.2.3"
16+
"@stacks/connect": "8.2.4"
1717
},
1818
"devDependencies": {
1919
"@types/react-dom": "^18.3.1",

0 commit comments

Comments
 (0)