Skip to content

Commit bc88e27

Browse files
authored
Merge pull request nervosnetwork#3228 from nervosnetwork/rc/v0.117.0
2 parents 6169a10 + 19b23bf commit bc88e27

File tree

290 files changed

+6075
-2839
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

290 files changed

+6075
-2839
lines changed

.ckb-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
v0.116.1
1+
v0.117.0

.github/workflows/check-code-style.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
cache: "yarn"
1919

2020
- name: Restore
21-
uses: actions/cache@v3
21+
uses: actions/cache@v4
2222
with:
2323
path: |
2424
node_modules
@@ -31,7 +31,7 @@ jobs:
3131
3232
- name: Changed Files
3333
id: changed-files
34-
uses: tj-actions/changed-files@v41
34+
uses: tj-actions/changed-files@v44
3535
with:
3636
files: "packages/**/*.{js,cjs,mjs,jsx,ts,tsx,css,scss}"
3737

.github/workflows/check_storybook.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
node:
12-
- 18.12.0
12+
- 20.15.1
1313
os:
1414
- macos-latest
1515
- ubuntu-20.04
@@ -35,7 +35,7 @@ jobs:
3535
cache: "yarn"
3636

3737
- name: Restore
38-
uses: actions/cache@v3
38+
uses: actions/cache@v4
3939
with:
4040
path: |
4141
node_modules

.github/workflows/merge_released_into_develop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ jobs:
1313
permissions:
1414
pull-requests: write
1515
steps:
16-
- uses: actions/checkout@master
16+
- uses: actions/checkout@v4
1717
- name: Request
1818
uses: repo-sync/pull-request@v2
1919
with:

.github/workflows/package.yml

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
node:
15-
- 18.12.0
15+
- 20.15.1
1616
os:
1717
- macos-latest
1818
- ubuntu-20.04
@@ -42,7 +42,7 @@ jobs:
4242
cache: "yarn"
4343

4444
- name: Restore
45-
uses: actions/cache@v3
45+
uses: actions/cache@v4
4646
with:
4747
path: |
4848
node_modules
@@ -51,7 +51,7 @@ jobs:
5151

5252
- name: Add msbuild to PATH
5353
if: matrix.os == 'windows-2019'
54-
uses: microsoft/setup-msbuild@v1.3.1
54+
uses: microsoft/setup-msbuild@v2
5555
env:
5656
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
5757

@@ -103,6 +103,11 @@ jobs:
103103
env:
104104
CI: false
105105

106+
# Inject LOG_ENCRYPTION_PUBLIC_KEY to encrypt sensitive log
107+
- name: Inject environment variables
108+
run: |
109+
echo "LOG_ENCRYPTION_PUBLIC_KEY=${{ secrets.LOG_ENCRYPTION_PUBLIC_KEY }}" >> packages/neuron-wallet/.env
110+
106111
- name: Package for MacOS
107112
if: matrix.os == 'macos-latest'
108113
run: |

.github/workflows/package_for_test.yml

Lines changed: 36 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
strategy:
1313
matrix:
1414
node:
15-
- 18.12.0
15+
- 20.15.1
1616
os:
1717
- macos-latest
1818
- ubuntu-20.04
@@ -46,14 +46,45 @@ jobs:
4646
with:
4747
ref: refs/pull/${{ github.event.issue.number }}/merge
4848

49+
- name: Ensure no more commits after the triggering comment
50+
uses: actions/github-script@v7
51+
if: ${{ github.event_name == 'issue_comment' }}
52+
env:
53+
ISSUE_NUMBER: ${{github.event.issue.number}}
54+
COMMENT_ID: ${{ github.event.comment.id }}
55+
with:
56+
script: |
57+
const { ISSUE_NUMBER, COMMENT_ID } = process.env
58+
let page = 1
59+
let hasFoundComment = false
60+
while(true) {
61+
const { data: timelines } = await github.rest.issues.listEventsForTimeline({
62+
owner: context.repo.owner,
63+
repo: context.repo.repo,
64+
issue_number: ISSUE_NUMBER,
65+
page,
66+
per_page: 100,
67+
})
68+
if (timelines.some(v => {
69+
hasFoundComment = hasFoundComment || (v.event === 'commented' && `${v.id}` === `${COMMENT_ID}`)
70+
return hasFoundComment && v.event === 'committed'
71+
})) {
72+
throw new Error('The last commit comes after the comment, please comment and package after last commit')
73+
}
74+
if (timelines.length === 0) {
75+
return
76+
}
77+
page += 1
78+
}
79+
4980
- name: Setup Node
5081
uses: actions/setup-node@v4
5182
with:
5283
node-version: ${{ matrix.node }}
5384
cache: "yarn"
5485

5586
- name: Restore
56-
uses: actions/cache@v3
87+
uses: actions/cache@v4
5788
with:
5889
path: |
5990
node_modules
@@ -62,7 +93,7 @@ jobs:
6293

6394
- name: Add msbuild to PATH
6495
if: matrix.os == 'windows-2019'
65-
uses: microsoft/setup-msbuild@v1.3.1
96+
uses: microsoft/setup-msbuild@v2
6697
env:
6798
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"
6899

@@ -225,7 +256,7 @@ jobs:
225256
226257
- name: Comment by pull request comment event
227258
if: ${{ github.event_name == 'issue_comment' }}
228-
uses: peter-evans/create-or-update-comment@v3
259+
uses: peter-evans/create-or-update-comment@v4
229260
with:
230261
comment-id: ${{ github.event.comment.id }}
231262
body: |
@@ -242,7 +273,7 @@ jobs:
242273
steps:
243274
- name: Comment by pull request comment event when package failed
244275
if: ${{ github.event_name == 'issue_comment' }}
245-
uses: peter-evans/create-or-update-comment@v3
276+
uses: peter-evans/create-or-update-comment@v4
246277
with:
247278
comment-id: ${{ github.event.comment.id }}
248279
body: Packageing failed in [${{ github.run_id }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). @${{ github.event.comment.user.login }}

.github/workflows/unit_tests.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ jobs:
99
strategy:
1010
matrix:
1111
node:
12-
- 20.11.1
12+
- 20.15.1
1313
os:
1414
- macos-latest
1515
- ubuntu-20.04
@@ -35,7 +35,7 @@ jobs:
3535
cache: "yarn"
3636

3737
- name: Restore
38-
uses: actions/cache@v3
38+
uses: actions/cache@v4
3939
with:
4040
path: |
4141
node_modules

.github/workflows/update_ckb_client_versions.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
- name: Setup Node.js
2121
uses: actions/setup-node@v4
2222
with:
23-
node-version: 18.x
23+
node-version: 20.15.1
2424

2525
- name: Update versions
2626
id: update_versions
@@ -37,7 +37,7 @@ jobs:
3737
git_commit_gpgsign: true
3838

3939
- name: Open PR to develop branch
40-
uses: peter-evans/create-pull-request@v5
40+
uses: peter-evans/create-pull-request@v6
4141
with:
4242
title: Update ckb client versions
4343
commit-message: 'feat: update ckb client versions'

.github/workflows/update_neuron_compatible.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ jobs:
2323
- name: Setup Node.js
2424
uses: actions/setup-node@v4
2525
with:
26-
node-version: 20.x
26+
node-version: 20.15.1
2727

2828
- name: Update versions
2929
id: update_versions
@@ -40,7 +40,7 @@ jobs:
4040
git_commit_gpgsign: true
4141

4242
- name: Open PR to RC branch
43-
uses: peter-evans/create-pull-request@v5
43+
uses: peter-evans/create-pull-request@v6
4444
with:
4545
title: Update Neuron compatibility table
4646
commit-message: 'feat: Update Neuron compatibility table'

.github/workflows/update_wallet_env.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,22 @@ jobs:
1414
if: ${{ startsWith(github.ref_name, 'rc/') }}
1515
steps:
1616
- name: Create Branch
17-
uses: peterjgrainger/action-create-branch@v2.4.0
17+
uses: peterjgrainger/action-create-branch@v3.0.0
1818
env:
1919
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2020
with:
2121
branch: 'chore-update-wallet-env/${{github.ref_name}}'
22-
sha: '${{ github.event.create.head.sha }}'
22+
sha: '${{ github.sha }}'
2323

2424
- name: Checkout
2525
uses: actions/checkout@v4
2626
with:
2727
ref: 'chore-update-wallet-env/${{github.ref_name}}'
28-
28+
2929
- name: Setup Node
3030
uses: actions/setup-node@v4
3131
with:
32-
node-version: 18.12.0
32+
node-version: 20.15.1
3333

3434
- name: Write env file
3535
run: |

0 commit comments

Comments
 (0)