Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release v0.110.3 #2845

Merged
merged 153 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
153 commits
Select commit Hold shift + click to select a range
55df0df
feat: Create new wallet for new ui (#2463)
yanguoyu Sep 22, 2022
3c2a894
fix: Avoid Error icon cover ErrorConstructor
yanguoyu Sep 28, 2022
d4de29f
feat: Update react-router to v6. (#2499)
yanguoyu Oct 15, 2022
4812317
feat: Update storybook to 6.5.12 (#2506)
yanguoyu Oct 20, 2022
9435681
Feat: new UI nav menu (#2513)
yanguoyu Nov 1, 2022
c3b62bf
feat: remove uifabric experiments and uifabric styling (#2537)
alexsupa597 Feb 6, 2023
3ebf935
Merge remote-tracking branch 'upstream/develop' into merge-develop
yanguoyu Mar 10, 2023
ac18d00
fix: Remove undefined function
yanguoyu Mar 10, 2023
847ef87
fix: Remove some error added code when merge.
yanguoyu Mar 10, 2023
9ac0f98
Merge pull request #2605 from yanguoyu/merge-develop
Keith-CY Mar 10, 2023
651e19a
feat: Add table component for Table. (#2603)
yanguoyu Mar 23, 2023
689d671
Add page container component for all page. (#2608)
yanguoyu Mar 24, 2023
67832d6
Feat: new UI overview page (#2620)
yanguoyu Apr 3, 2023
32c76c8
New design for Neuron-Send (#2619)
devchenyan Apr 3, 2023
945a63d
Feat new UI receive (#2621)
yanguoyu Apr 6, 2023
c6f3be3
feat: Offline Sign with new ui (#2638)
devchenyan Apr 23, 2023
4d19757
feat: implmenet clsx
WhiteMinds Apr 24, 2023
8b8f86e
chore: upgrade the prettier version to 2.3.0 uniformly
WhiteMinds Apr 24, 2023
e9e7611
styles: execute prettier for the file to be modified
WhiteMinds Apr 24, 2023
0b92ef0
feat: allow the component's style attribute to pass custom css variables
WhiteMinds Apr 24, 2023
4c4f57d
feat: implement Tabs component
WhiteMinds Apr 24, 2023
2a02a44
feat: support the active state of child routes for the Navbar component
WhiteMinds Apr 24, 2023
43b4ead
feat: implement Breadcrumbs in the PageContainer component
WhiteMinds Apr 24, 2023
1a2f90a
feat: implement the new UI for the NervosDAO
WhiteMinds Apr 24, 2023
0c83889
feat: implement the new UI for the CompensationProgressBar
WhiteMinds Apr 26, 2023
b3547bf
feat: implement the new UI for the PasswordRequestDialog
WhiteMinds May 4, 2023
ae458f4
refactor: reuse HIDE_BALANCE constant
WhiteMinds May 4, 2023
8ab8a54
feat: merge develop
devchenyan May 6, 2023
17b0e66
feat: send for merge develop
devchenyan May 6, 2023
38eb70f
fix: merge develop
devchenyan May 6, 2023
0f2a353
feat: update
devchenyan May 6, 2023
9f9a8ff
fix: devDependencies
devchenyan May 6, 2023
1f553c1
fix: stories
devchenyan May 6, 2023
f170723
Merge pull request #2645 from WhiteMinds/feat/115_NewDesignForDao
WhiteMinds May 8, 2023
ee6d7bb
feat: Setting with new ui (#2640)
devchenyan May 8, 2023
93a5da4
feat: Sign/Verify Message with new ui (#2639)
devchenyan May 8, 2023
982d39c
feat: update new ui design for history
alexsupa597 Apr 16, 2023
44f32a9
Merge pull request #2637 from JeffreyMa597/feat/new-ui-design-for-his…
alexsupa597 May 15, 2023
cf55f55
refactor(Tabs): optimize scalability
WhiteMinds May 15, 2023
8e228e4
Merge pull request #2669 from WhiteMinds/refactor/Tabs
WhiteMinds May 22, 2023
3cab139
Merge branch 'new-ui-design' into feat-adopt-new-ui
devchenyan May 24, 2023
147bf43
feat: add locales
devchenyan May 24, 2023
1ecd785
Merge pull request #2654 from devchenyan/feat-adopt-new-ui
devchenyan May 24, 2023
0cb27b8
Merge released refs/tags/v0.110.0 into develop (#2695)
github-actions[bot] May 31, 2023
7af084d
fix:update dependency sqlite3 to v5.1.6 (#2676)
alexsupa597 Jun 1, 2023
fd9166b
fix: update dependency jest when to v3 (#2684)
alexsupa597 Jun 5, 2023
1262b75
fix: loading sync icons lack animation (#2698)
alexsupa597 Jun 6, 2023
6f51491
Merge remote-tracking branch 'upstream/develop' into merge-dev-to-newui
yanguoyu Jun 6, 2023
36ea6a7
feat: Merge develop
yanguoyu Jun 6, 2023
f7b1a65
fix: Fix merge develop
yanguoyu Jun 6, 2023
8fb3700
Merge pull request #2703 from yanguoyu/merge-dev-to-newui
yanguoyu Jun 7, 2023
e7adec4
feat: Add package for pull request and comment (#2693)
yanguoyu Jun 12, 2023
476cd1c
feat: Update lerna to v7 (#2715)
yanguoyu Jun 13, 2023
140735f
Merge remote-tracking branch 'upstream/develop' into merge-dev-to-newui
yanguoyu Jun 13, 2023
90a298f
fix: Merge yarn lock
yanguoyu Jun 13, 2023
37e00b1
Merge pull request #2717 from yanguoyu/merge-dev-to-newui
yanguoyu Jun 13, 2023
3964a05
fix: update ledgerhq to 6.27.15
yanguoyu Jun 13, 2023
861c272
fix: prettier was not run during the commit (#2720)
WhiteMinds Jun 14, 2023
7d72147
Merge pull request #2716 from yanguoyu/update-ledgerhq
yanguoyu Jun 20, 2023
9028b7d
chore(deps): update dependency electron to v24.5.1 (#2728)
yanguoyu Jun 20, 2023
6ba769e
fix: If event_name is equal pull_request, we should skip code sign (#…
yanguoyu Jun 20, 2023
ad5450e
Merge branch 'new-ui-design' into develop
Keith-CY Jun 20, 2023
7e97ffa
refactor: upgrade lumos to the 0.20.x (#2683)
homura Jun 21, 2023
112af4e
chore: upgrade dependencies (#2724)
Keith-CY Jun 25, 2023
f2900d6
fix: Remove duplicate config when get cells. (#2732)
yanguoyu Jun 25, 2023
a58912d
fix: Fix sync stop with exception and multisig balance. (#2711)
yanguoyu Jun 25, 2023
8fa88e9
fix: dependencies (eslint) (#2741)
devchenyan Jun 25, 2023
9fa5e27
Automatically pad decimal places when the deposit dialog automaticall…
WhiteMinds Jun 25, 2023
c89bd54
refactor: Optimize input and output storage (#2672)
yanguoyu Jun 25, 2023
aef5fa3
fix: New UI menu bar issues (#2709)
alexsupa597 Jun 26, 2023
beaecab
chore(logs): Add logs if sync multisig failed. (#2729)
yanguoyu Jun 26, 2023
31dd4da
fix: Add light directory to copy ckb_light.toml (#2743)
yanguoyu Jun 26, 2023
8fc940e
Fix: issues for receive page (#2723)
alexsupa597 Jun 26, 2023
c613099
chore: dependencies (prettier、lint-staged) (#2742)
devchenyan Jun 26, 2023
37fa367
chore(deps-dev): bump webpack from 5.74.0 to 5.76.0 (#2733)
dependabot[bot] Jun 27, 2023
2757d65
feat: Asset Accounts with new ui (#2687)
devchenyan Jun 27, 2023
815a965
fix: the .prettierignore file did not take effect during precommit (#…
WhiteMinds Jun 27, 2023
232b947
chore: upgrade dependencies (#2745)
Keith-CY Jun 28, 2023
94678b0
refactor: fix typos (#2738)
Keith-CY Jun 28, 2023
f2f5708
feat: Multisig Address with new ui (#2666)
devchenyan Jun 28, 2023
55e0db3
chore(CI): Add check story book to CI and update storybook to v7 (#2747)
yanguoyu Jun 29, 2023
9615e02
chore: enable prettier check in ci (#2692)
homura Jun 29, 2023
1afdb2f
Fix: style issue in balance module (#2713)
alexsupa597 Jun 29, 2023
6e00509
chore: check only the supported types (#2752)
homura Jun 30, 2023
b4f7de2
Package by pr comment and update @electron/notarize to 2.0.0 (#2750)
yanguoyu Jun 30, 2023
2e9681e
fix: issues for history page (#2721)
alexsupa597 Jun 30, 2023
f2f9431
ci: fix api of github-scripts (#2755)
Keith-CY Jul 2, 2023
6b16aed
chore(CI): Checkout pr branch when event is issue_comment (#2754)
yanguoyu Jul 4, 2023
6133f1f
fix: Add team id to environment. (#2759)
yanguoyu Jul 4, 2023
29c8594
feat: fix issues of new ui (#2708)
devchenyan Jul 5, 2023
9e25bca
fix: recent activities style questions (#2735)
alexsupa597 Jul 5, 2023
802b957
Fix: hover click transaction style exception (#2725)
alexsupa597 Jul 5, 2023
9521feb
fix:update the display of receive address (#2757)
alexsupa597 Jul 6, 2023
c6fa609
Merge branch 'master' into develop
Keith-CY Jul 7, 2023
a22fb7c
feat: Adapt storybook v7, remove deprecations[ComponentStory, stories…
yanguoyu Jul 11, 2023
85ec4bf
Fix multisig address (#2767)
devchenyan Jul 12, 2023
6d60b78
Fix asset accounts (#2765)
devchenyan Jul 18, 2023
0a3681d
chore(CI): Use pr branch for checkout. (#2774)
yanguoyu Jul 18, 2023
9286798
chore: Use `startsWith` to replace slash-command-action (#2778)
yanguoyu Jul 20, 2023
3936b8e
fix: address book abbreviation not right (#2775)
zhangyouxin Jul 20, 2023
54c5f67
Refactor: replace 'HexUtils' with lumos functionalities (#2718)
zhangyouxin Jul 20, 2023
034d345
chore: Add action to update assume valid target (#2773)
yanguoyu Jul 20, 2023
b4f9a26
fix: Use common tips style. (#2777)
yanguoyu Jul 20, 2023
0b8d7fb
Fix: offline sign not shown error message if broadcast error (#2779)
devchenyan Jul 21, 2023
56efdea
chore(deps): bump word-wrap from 1.2.3 to 1.2.4 (#2776)
dependabot[bot] Jul 21, 2023
4b196aa
chore(deps): bump semver from 5.7.1 to 5.7.2 (#2770)
dependabot[bot] Jul 24, 2023
aa7e850
fix: Fix generate transaction when deposit all without balance. (#2772)
yanguoyu Jul 24, 2023
0d23958
feat: support new customized assets (#2667)
alexsupa597 Jul 27, 2023
34fff73
feat:Detect new upgrade on launch (#2783)
yanguoyu Aug 4, 2023
0ab3583
fix: issues - 237、238 (#2789)
devchenyan Aug 4, 2023
f689dfd
fix: issues - 233、232、245、234 (#2785)
devchenyan Aug 5, 2023
1900ff1
feat: Add set light client start block number (#2786)
yanguoyu Aug 7, 2023
d0c33b0
fix: issues - 231、224、244、225、223、228、229 (#2791)
devchenyan Aug 7, 2023
c60d936
fix: Fix DAO styles. (#2795)
yanguoyu Aug 8, 2023
0100f05
Fix: fix history page style. (#2797)
yanguoyu Aug 8, 2023
2bd7db1
fix: issue 253 (#2798)
devchenyan Aug 8, 2023
e0d15a1
fix: issue - 239 (#2793)
devchenyan Aug 8, 2023
d7f7597
fix: Use alert dialog to replace default dialog (#2800)
yanguoyu Aug 10, 2023
40ba67a
fix: Fix styles. (#2799)
yanguoyu Aug 10, 2023
d450e13
ci: remove 'files' option in typos action (#2804)
Keith-CY Aug 11, 2023
64c416e
fix: Add tx detail to child router. Remove the unused component. (#2805)
yanguoyu Aug 14, 2023
9e0230c
fix: Style issue with multisig addresses (#2806)
devchenyan Aug 17, 2023
2652061
fix: When height is below 720px set position absolute to avoid not sc…
yanguoyu Aug 17, 2023
9d585fe
refactor: remove address and script convertion from ckb-sdk-js (#2801)
zhangyouxin Aug 24, 2023
f7d28f2
feat: Add check ckb node update or compatibility (#2808)
yanguoyu Aug 24, 2023
51518cf
refactor: use lumos to calculate script hash (#2802)
zhangyouxin Aug 25, 2023
5de2a01
refactor: remove usage of serialization methods from ckb-sdk-js (#2803)
zhangyouxin Aug 25, 2023
506ff74
chore: upgrade ckb node to v0.110.1 (#2812)
Keith-CY Aug 25, 2023
541677c
fix: Add focus and active style for button. (#2815)
yanguoyu Aug 28, 2023
8964e8e
fix: Fix network type label (#2811)
yanguoyu Aug 29, 2023
bc1b555
ci: add github action to update versions of ckb node and light client…
Keith-CY Aug 29, 2023
e4ab524
refactor: remove systemScripts from ckb-sdk-js (#2814)
zhangyouxin Aug 30, 2023
101b7e1
feat: Change default network name to Internal Node (#2813)
yanguoyu Aug 31, 2023
29daa30
chore: Remove unused component and icons (#2820)
yanguoyu Sep 7, 2023
d1cc35d
chore(deps-dev): bump electron from 24.6.0 to 24.7.1 (#2823)
dependabot[bot] Sep 7, 2023
1c56136
chore(deps): bump @adobe/css-tools from 4.2.0 to 4.3.1 (#2818)
dependabot[bot] Sep 7, 2023
8e28d9d
refactor: remove ckb-sdk-js from dependency list (#2817)
zhangyouxin Sep 8, 2023
96ab14f
Update ckb client versions (#2839)
github-actions[bot] Sep 12, 2023
c7009d8
feat: Downplaying the address (#2822)
devchenyan Sep 18, 2023
9d14ac6
fix: Show Error message (#2842)
yanguoyu Sep 18, 2023
be2c2f3
fix: Fix miss saving some inputs and outputs with optimize input and …
yanguoyu Sep 20, 2023
257c06e
chore: update assume valid target
Keith-CY Sep 20, 2023
098ebf5
chore: update versions and changelogs
Keith-CY Sep 20, 2023
1b0f290
fix: patch label of textfield when it's not a string (#2851)
Keith-CY Sep 27, 2023
70cb7fd
Fix: fix rc/110.3 bugs, detail in comments (#2849)
yanguoyu Sep 28, 2023
fc132fd
Merge pull request #2855 from nervosnetwork/develop
Keith-CY Sep 28, 2023
b3f3c2e
fix: fixed locktime cell,multisig sync blocknumber, table head style …
yanguoyu Oct 9, 2023
782b8c5
chore: update scheduled release date of v0.110.3
Keith-CY Sep 28, 2023
0d72d95
Merge pull request #2861 from nervosnetwork/develop
Keith-CY Oct 9, 2023
47b139a
fix: issue - 277 (#2862)
devchenyan Oct 9, 2023
55fe242
Merge pull request #2863 from nervosnetwork/develop
Keith-CY Oct 10, 2023
699de52
chore: Fix files code style (#2864)
yanguoyu Oct 10, 2023
a607900
Merge branch 'develop' into rc/v0.110.3
Keith-CY Oct 10, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
2 changes: 1 addition & 1 deletion .ckb-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
v0.110.0
v0.110.2
12 changes: 6 additions & 6 deletions .github/workflows/add-replied-label.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ jobs:
steps:
- id: check-access
name: Check if the commenter is a collaborator
uses: actions/github-script@v4
uses: actions/github-script@v6
with:
script: |
try{
const response = await github.repos.checkCollaborator({
const response = await github.rest.repos.checkCollaborator({
owner: context.repo.owner,
repo: context.repo.repo,
username: context.payload.comment.user.login,
Expand All @@ -30,10 +30,10 @@ jobs:

- id: check-issue
name: Check if the comment is replied in an issue
uses: actions/github-script@v4
uses: actions/github-script@v6
with:
script: |
const response = await github.issues.get({
const response = await github.rest.issues.get({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
Expand All @@ -45,10 +45,10 @@ jobs:
- id: add-label
name: Add 'replied' label
if: ${{ steps.check-access.outputs.result == 'true' && steps.check-issue.outputs.result == 'true' }}
uses: actions/github-script@v4
uses: actions/github-script@v6
with:
script: |
await github.issues.addLabels({
await github.rest.issues.addLabels({
owner: context.repo.owner,
repo: context.repo.repo,
issue_number: context.issue.number,
Expand Down
41 changes: 41 additions & 0 deletions .github/workflows/check-code-style.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
name: Check Code Style

on:
push:
pull_request:

jobs:
default:
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
cache: "yarn"

- name: Restore
uses: actions/cache@v3
with:
path: |
node_modules
*/*/node_modules
key: 2022-05-07-${{ runner.os }}-${{ hashFiles('**/yarn.lock')}}

- name: Bootstrap
run: |
yarn

- name: Changed Files
id: changed-files
uses: tj-actions/changed-files@v37
with:
files: "packages/**/*.{js,cjs,mjs,jsx,ts,tsx,css,scss}"

- name: Prettier Check
if: steps.changed-files.outputs.any_changed == 'true'
run: |
yarn prettier --check ${{ steps.changed-files.outputs.all_changed_files }}
12 changes: 12 additions & 0 deletions .github/workflows/check-spell.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: Check spell
on:
- pull_request
- push

jobs:
run:
name: Check spell
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: crate-ci/typos@master
66 changes: 66 additions & 0 deletions .github/workflows/check_storybook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,66 @@
name: Check storybook

on:
push:
pull_request:

jobs:
default:
strategy:
matrix:
node:
- 18.12.0
os:
- macos-latest
- ubuntu-20.04
- windows-latest

runs-on: ${{ matrix.os }}

name: ${{ matrix.os }}(Node.js ${{ matrix.node }})

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout
uses: actions/checkout@v3

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: "yarn"

- name: Restore
uses: actions/cache@v3
with:
path: |
node_modules
*/*/node_modules
key: 2022-10-11-${{ runner.os }}-${{ hashFiles('**/yarn.lock')}}

- name: Install libudev
if: matrix.os == 'ubuntu-20.04'
run: |
sudo apt-get update
sudo apt-get install -y libudev-dev

- name: Install Lerna
run: yarn global add lerna

- name: Bootstrap
run: |
yarn
yarn build
env:
CI: false

- name: Build storybook
run: |
cd packages/neuron-ui
yarn build-storybook
env:
CI: true
11 changes: 6 additions & 5 deletions .github/workflows/package.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ on:
push:
branches:
- master
- 'rc/**'
- 'hotfix/**'
- "rc/**"
- "hotfix/**"

jobs:
default:
Expand Down Expand Up @@ -35,7 +35,7 @@ jobs:
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
cache: "yarn"

- name: Restore
uses: actions/cache@v3
Expand All @@ -49,7 +49,7 @@ jobs:
if: matrix.os == 'windows-2019'
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"

- name: Install libudev
if: matrix.os == 'ubuntu-20.04'
Expand All @@ -60,7 +60,7 @@ jobs:
- name: Install Lerna
run: yarn global add lerna

- name: Boostrap
- name: Bootstrap
run: |
yarn
env:
Expand All @@ -77,6 +77,7 @@ jobs:
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
CSC_LINK: ${{ secrets.MAC_CERTIFICATE_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
TEAM_ID: ${{ secrets.TEAM_ID }}

- name: Package for Windows
if: matrix.os == 'windows-2019'
Expand Down
80 changes: 71 additions & 9 deletions .github/workflows/package_for_test.yml
Original file line number Diff line number Diff line change
@@ -1,9 +1,14 @@
name: Package Neuron for Test

on: [push]
on:
issue_comment:
types: [created, edited]
push:

jobs:
packaging:
if: ${{ (github.event_name == 'issue_comment' && github.event.issue.pull_request && startsWith(github.event.comment.body, '/package')) || github.event_name == 'push' }}

strategy:
matrix:
node:
Expand All @@ -17,20 +22,31 @@ jobs:

name: ${{ matrix.os }}(Node.js ${{ matrix.node }})

env:
MAC_SHOULD_CODE_SIGN: ${{ github.event_name != 'pull_request' && secrets.APPLE_ID != '' }}
WIN_CERTIFICATE_BASE64: ${{ secrets.WIN_CERTIFICATE_BASE64 }}

steps:
- name: Set git to use LF
run: |
git config --global core.autocrlf false
git config --global core.eol lf

- name: Checkout
- name: Checkout for push
uses: actions/checkout@v3
if: ${{ github.event_name == 'push' }}

- name: Checkout for PR
uses: actions/checkout@v3
if: ${{ github.event_name == 'issue_comment' }}
with:
ref: refs/pull/${{ github.event.issue.number }}/merge

- name: Setup Node
uses: actions/setup-node@v3
with:
node-version: ${{ matrix.node }}
cache: 'yarn'
cache: "yarn"

- name: Restore
uses: actions/cache@v3
Expand All @@ -44,7 +60,7 @@ jobs:
if: matrix.os == 'windows-2019'
uses: microsoft/[email protected]
env:
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
ACTIONS_ALLOW_UNSECURE_COMMANDS: "true"

- name: Install libudev
if: matrix.os == 'ubuntu-20.04'
Expand All @@ -55,14 +71,14 @@ jobs:
- name: Install Lerna
run: yarn global add lerna

- name: Boostrap
- name: Bootstrap
run: |
yarn
env:
CI: false

- name: Package for MacOS
if: matrix.os == 'macos-latest'
if: ${{ matrix.os == 'macos-latest' && env.MAC_SHOULD_CODE_SIGN == 'true' }}
run: |
./scripts/download-ckb.sh mac
yarn package:test mac
Expand All @@ -72,9 +88,20 @@ jobs:
APPLE_ID_PASSWORD: ${{ secrets.APPLE_ID_PASSWORD }}
CSC_LINK: ${{ secrets.MAC_CERTIFICATE_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.MAC_CERTIFICATE_PASSWORD }}
TEAM_ID: ${{ secrets.TEAM_ID }}

- name: Package for MacOS for skip code sign
if: ${{ matrix.os == 'macos-latest' && env.MAC_SHOULD_CODE_SIGN == 'false' }}
run: |
export CSC_IDENTITY_AUTO_DISCOVERY=false
./scripts/download-ckb.sh mac
yarn package:test mac
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SKIP_NOTARIZE: true

- name: Package for Windows
if: matrix.os == 'windows-2019'
if: ${{ matrix.os == 'windows-2019' && env.WIN_CERTIFICATE_BASE64 != '' }}
run: |
bash ./scripts/download-ckb.sh win
yarn build
Expand All @@ -85,6 +112,16 @@ jobs:
CSC_LINK: ${{ secrets.WIN_CERTIFICATE_BASE64 }}
CSC_KEY_PASSWORD: ${{ secrets.WIN_CERTIFICATE_PASSWORD }}

- name: Package for Windows for skip code sign
if: ${{ matrix.os == 'windows-2019' && env.WIN_CERTIFICATE_BASE64 == '' }}
run: |
bash ./scripts/download-ckb.sh win
yarn build
bash ./scripts/copy-ui-files.sh
bash ./scripts/package-for-test.sh win
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Package for Linux
if: matrix.os == 'ubuntu-20.04'
run: |
Expand Down Expand Up @@ -135,12 +172,37 @@ jobs:
name: Neuron-Linux
path: release/Neuron-*.AppImage

comment:
comment_when_package_success:
needs: [packaging]
name: Append links to the Pull Request
runs-on: ubuntu-latest
steps:
- uses: peter-evans/commit-comment@v2
- name: Comment by push event
if: ${{ github.event_name == 'push' }}
uses: peter-evans/commit-comment@v2
with:
body: |
Packaging for test is done in [${{ github.run_id }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}})

- name: Comment by pull request comment event
if: ${{ github.event_name == 'issue_comment' }}
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ github.event.comment.id }}
body: |
Packaging for test is done in [${{ github.run_id }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). @${{ github.event.comment.user.login }}
edit-mode: append

comment_when_package_failed:
needs: [packaging]
if: ${{ always() && needs.packaging.result == 'failure' }}
name: Append failed comment to the comment
runs-on: ubuntu-latest
steps:
- name: Comment by pull request comment event when package failed
if: ${{ github.event_name == 'issue_comment' }}
uses: peter-evans/create-or-update-comment@v3
with:
comment-id: ${{ github.event.comment.id }}
body: Packageing failed in [${{ github.run_id }}](https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}). @${{ github.event.comment.user.login }}
edit-mode: append
4 changes: 2 additions & 2 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ jobs:
path: |
node_modules
*/*/node_modules
key: 2022-05-07-${{ runner.os }}-${{ hashFiles('**/yarn.lock')}}
key: 2022-10-11-${{ runner.os }}-${{ hashFiles('**/yarn.lock')}}

- name: Install libudev
if: matrix.os == 'ubuntu-20.04'
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Install Lerna
run: yarn global add lerna

- name: Boostrap
- name: Bootstrap
run: |
yarn
yarn build
Expand Down
Loading
Loading