Skip to content

Commit 15e1daf

Browse files
authored
Merge pull request #227 from ckb-devrel/v0.3.x
Merge V0.3.x into master
2 parents 83a2ab7 + fbe7dae commit 15e1daf

113 files changed

Lines changed: 10993 additions & 32134 deletions

File tree

Some content is hidden

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

.github/workflows/canary-publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,18 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v3
17+
uses: actions/checkout@v4
1818

19-
- uses: actions/setup-node@v3
19+
- uses: actions/setup-node@v4
2020
with:
2121
node-version: '20.x'
2222
registry-url: 'https://registry.npmjs.org'
2323

2424
- name: Install dependencies
25-
run: yarn
25+
run: npm install -g pnpm && pnpm i
2626

2727
- name: Build
28-
run: yarn run build
28+
run: pnpm build
2929

3030
- name: Set up Git identity
3131
run: |

.github/workflows/node.js.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,21 +14,21 @@ jobs:
1414

1515
steps:
1616
- name: Checkout repository
17-
uses: actions/checkout@v2
17+
uses: actions/checkout@v4
1818

1919
- name: Setup Node.js
20-
uses: actions/setup-node@v2
20+
uses: actions/setup-node@v4
2121
with:
2222
node-version: "20"
2323

2424
- name: Install dependencies
25-
run: yarn
25+
run: npm install -g pnpm && pnpm i
2626

2727
- name: Linting
28-
run: yarn run lint
28+
run: pnpm lint
2929

3030
- name: Building
31-
run: yarn run build
31+
run: pnpm build
3232

33-
- run: yarn run fmt
33+
- run: pnpm fmt
3434
- run: git diff --exit-code

.github/workflows/publish.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,18 +11,18 @@ jobs:
1111

1212
steps:
1313
- name: Checkout repository
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515

16-
- uses: actions/setup-node@v3
16+
- uses: actions/setup-node@v4
1717
with:
1818
node-version: '20.x'
1919
registry-url: 'https://registry.npmjs.org'
2020

2121
- name: Install dependencies
22-
run: yarn
22+
run: npm install -g pnpm && pnpm i
2323

2424
- name: Build
25-
run: yarn run build
25+
run: pnpm build
2626

2727
# Setup .npmrc file to publish to npm
2828
- name: Publish to npm

README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,12 @@ There are BREAKING CHANGES between v0.2.x and v0.3.x, make sure to read the [mig
5454
npm install -g @offckb/cli
5555
```
5656

57+
or use `pnpm` to install:
58+
59+
```sh
60+
pnpm install -g @offckb/cli
61+
```
62+
5763
_We recommend using [LTS](https://nodejs.org/en/download/package-manager) version of Node to run `offckb`_
5864

5965
## Usage

docs/develop.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,3 +23,19 @@ All the script configs are generated by `ckb list-hashes` so you don't need to c
2323
### Update templates
2424

2525
edit the things in `templates/v${version}`
26+
27+
### Install dependencies
28+
29+
Since we use `pnpm` as a developing package manager, people install `offckb` by `npm` would require a [`npm-shrinkwrap.json`](https://docs.npmjs.com/cli/v8/commands/npm-shrinkwrap) file.
30+
31+
When updating the dependencies, remember to run the following command to generate the `npm-shrinkwrap.json` file.
32+
33+
```sh
34+
pnpm add <new-dependency>
35+
36+
// run the following to keep npm-shrinkwrap consistent with out pnpm-lock.json
37+
38+
npm shrinkwrap
39+
```
40+
41+
Remember to run the above command when trying to publish a new version.

0 commit comments

Comments
 (0)