Skip to content

Commit 3768d40

Browse files
authored
fix(release): use npm-shrinkwrap.json in release and update ci (#223)
* fix(release): use npm-shrinkwrap.json in release * fix(build): pnpm build * fix(build): install pnpm * fix(build): typo
1 parent dc851bd commit 3768d40

6 files changed

Lines changed: 20 additions & 15 deletions

File tree

.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
Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616
"dist",
1717
"account",
1818
"ckb",
19-
"package-lock.json",
19+
"npm-shrinkwrap.json",
2020
"templates/v3/offckb.config.example.ts"
2121
],
2222
"private": false,
@@ -67,6 +67,7 @@
6767
"@inquirer/prompts": "^4.1.0",
6868
"@types/http-proxy": "^1.17.15",
6969
"adm-zip": "^0.5.10",
70+
"chalk": "^5.4.1",
7071
"child_process": "^1.0.2",
7172
"ckb-transaction-dumper": "^0.4.2",
7273
"commander": "^12.0.0",

pnpm-lock.yaml

Lines changed: 3 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)