Skip to content
This repository was archived by the owner on Jun 4, 2025. It is now read-only.

Commit 564f074

Browse files
chore: fix chore: fix dependencies versions in the example project & upgrade some packages (#40)
* chore: fix dependencies versions in the example project, migrate @tot… (#36) * chore: fix dependencies versions in the example project, migrate @totejs/walletkit to @node-real/walletkit. * chore: upgrade the publish flow * chore: config commit-msg * chore: update versions (alpha) (#37) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> * fix: greenfield-uploadkit auto upgrade version error (#38) * chore: update versions (alpha) (#39) Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> --------- Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
1 parent 4749443 commit 564f074

File tree

37 files changed

+305
-202
lines changed

37 files changed

+305
-202
lines changed

.changeset/pre.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"mode": "pre",
3+
"tag": "alpha",
4+
"initialVersions": {
5+
"docs": "0.0.1",
6+
"uploadkit-with-nextjs-rainbowkit": "0.1.0",
7+
"uploadkit-with-nextjs-walletkit": "0.1.0",
8+
"uploadkit-with-remix-rainbowkit": "0.0.75",
9+
"uploadkit-with-vite-walletkit": "0.0.1",
10+
"@node-real/greenfield-uploadkit": "0.0.5"
11+
},
12+
"changesets": [
13+
"short-pianos-allow",
14+
"slimy-knives-hunt"
15+
]
16+
}

.changeset/short-pianos-allow.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@node-real/greenfield-uploadkit": patch
3+
---
4+
5+
fix: greenfield-uploadkit auto upgrade version error

.changeset/slimy-knives-hunt.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"@node-real/greenfield-uploadkit": patch
3+
---
4+
5+
chore: fix dependencies' versions in the example project, migrate @totejs/walletkit to @node-real/walletkit.

.github/workflows/alpha.yaml

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
name: Alpha release
2+
on:
3+
push:
4+
branches:
5+
- alpha
6+
7+
jobs:
8+
release:
9+
name: release
10+
if: github.repository == 'node-real/greenfield-toolkit'
11+
timeout-minutes: 10
12+
runs-on: ubuntu-latest
13+
steps:
14+
- name: Checkout code repository
15+
uses: actions/checkout@v3
16+
with:
17+
fetch-depth: 0
18+
19+
- uses: ./.github/actions/setup
20+
with:
21+
npm_token: ${{ secrets.NPM_TOKEN }}
22+
23+
- name: Build packages
24+
run: pnpm build
25+
26+
- name: Enter pre mode
27+
if: github.event.commits[0].author.username != 'github-actions[bot]'
28+
run: pnpm ci:enter
29+
30+
- name: Create and publish versions
31+
uses: changesets/action@v1
32+
with:
33+
version: pnpm ci:alpha-version
34+
publish: pnpm ci:publish
35+
commit: 'chore: update versions'
36+
title: 'chore: update versions'
37+
env:
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

.github/workflows/release.yaml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,8 @@
1-
name: Release
1+
name: Stable Release
22
on:
33
push:
44
branches:
55
- main
6-
- alpha
7-
- 0.x
8-
- 0.x-alpha
96

107
jobs:
118
release:
@@ -20,22 +17,20 @@ jobs:
2017
fetch-depth: 0
2118

2219
- uses: ./.github/actions/setup
20+
with:
21+
npm_token: ${{ secrets.NPM_TOKEN }}
2322

2423
- name: Build packages
2524
run: pnpm build
2625

27-
- name: Creating .npmrc
28-
run: |
29-
cat << EOF > "$HOME/.npmrc"
30-
//registry.npmjs.org/:_authToken=$NPM_TOKEN
31-
EOF
32-
env:
33-
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
26+
- name: Exit pre mode
27+
if: github.event.commits[0].author.username != 'github-actions[bot]'
28+
run: pnpm ci:exit
3429

3530
- name: Create and publish versions
3631
uses: changesets/action@v1
3732
with:
38-
version: pnpm ci:version
33+
version: pnpm ci:stable-version
3934
publish: pnpm ci:publish
4035
commit: 'chore: update versions'
4136
title: 'chore: update versions'

.husky/commit-msg

100644100755
File mode changed.

commitlint.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ module.exports = {
33
rules: {
44
'subject-case': [
55
2,
6-
'never',
6+
'always',
77
['sentence-case', 'start-case', 'pascal-case', 'upper-case', 'lower-case'],
88
],
99
},

docs/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
"@emotion/styled": "^11.11.0",
1515
"@mdx-js/mdx": "~2.1.5",
1616
"@mdx-js/react": "~2.2.1",
17-
"@totejs/icons": "^2.19.0",
18-
"@totejs/uikit": "^2.54.2",
19-
"@totejs/walletkit": "^1.0.8",
17+
"@node-real/icons": "^2.19.0",
18+
"@node-real/uikit": "^2.54.2",
19+
"@node-real/walletkit": "^1.0.10-alpha.1",
2020
"@node-real/greenfield-uploadkit": "workspace:*",
2121
"@bnb-chain/greenfield-cosmos-types": "0.4.0",
2222
"@bnb-chain/greenfield-js-sdk": "1.2.0",

docs/src/App.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
import '@totejs/walletkit/styles.css';
1+
import '@node-real/walletkit/styles.css';
22
import '@node-real/greenfield-uploadkit/styles.css';
3-
import { ThemeProvider } from '@totejs/uikit';
3+
import { ThemeProvider } from '@node-real/uikit';
44
import { Routes, Route } from 'react-router-dom';
55

66
import { theme } from './theme';

docs/src/components/CodeBlock/CopyButton/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Button, useClipboard } from '@totejs/uikit';
1+
import { Button, useClipboard } from '@node-real/uikit';
22

33
interface CopyButtonProps {
44
code: string;

0 commit comments

Comments
 (0)