File tree Expand file tree Collapse file tree 4 files changed +1728
-91
lines changed
Expand file tree Collapse file tree 4 files changed +1728
-91
lines changed Original file line number Diff line number Diff line change @@ -11,23 +11,29 @@ jobs:
1111 strategy :
1212 matrix :
1313 node-version : ["16.x"]
14+ pnpm-version : ["7.x"]
1415 os : [ubuntu-latest]
1516 if : " !contains(github.event.head_commit.message, '[skip ci]')"
1617 steps :
1718 - name : Checkout repo
1819 uses : actions/checkout@v3
20+ - name : Use pnpm
21+ uses : pnpm/action-setup@v2
22+ with :
23+ version : ${{ matrix.pnpm-version }}
1924 - name : Use Node ${{ matrix.node-version }}
2025 uses : actions/setup-node@v3
2126 with :
2227 node-version : ${{ matrix.node-version }}
28+ cache : " pnpm"
2329 - name : Install dependencies
24- run : npm install
30+ run : pnpm install --fix-lockfile
2531 - name : Typecheck
26- run : npm run typecheck
32+ run : pnpm run typecheck
2733 - name : Lint
28- run : npm run lint
34+ run : pnpm run lint
2935 - name : Build
30- run : npm run build
36+ run : pnpm run build
3137 publish :
3238 name : Release
3339 if : ${{ github.ref == 'refs/heads/master' }}
@@ -36,14 +42,17 @@ jobs:
3642 steps :
3743 - name : Checkout
3844 uses : actions/checkout@v2
45+ - name : Use pnpm
46+ uses : pnpm/action-setup@v2
3947 with :
40- fetch-depth : 0
48+ version : ["7.x"]
4149 - name : Setup Node.js
4250 uses : actions/setup-node@v2
4351 with :
4452 node-version : " lts/*"
53+ cache : " pnpm"
4554 - name : Install dependencies
46- run : npm install
55+ run : pnpm install --fix-lockfile
4756 - name : Release
4857 env :
4958 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
Original file line number Diff line number Diff line change 4545 "sharp" : " 0.31.1"
4646 },
4747 "devDependencies" : {
48- "@jsdevtools/npm-publish" : " ^1.4.3" ,
48+ "@semantic-release/changelog" : " ^6.0.1" ,
49+ "@semantic-release/commit-analyzer" : " ^9.0.2" ,
50+ "@semantic-release/git" : " ^10.0.1" ,
51+ "@semantic-release/github" : " ^8.0.6" ,
52+ "@semantic-release/npm" : " ^9.0.1" ,
53+ "@semantic-release/release-notes-generator" : " ^10.0.3" ,
4954 "@types/inquirer" : " 9.0.2" ,
5055 "@types/node" : " 18.8.2" ,
5156 "@types/pdfkit" : " 0.12.6" ,
5661 "eslint-plugin-simple-import-sort" : " 8.0.0" ,
5762 "husky" : " ^8.0.1" ,
5863 "prettier" : " 2.7.1" ,
64+ "semantic-release" : " ^19.0.5" ,
5965 "ts-node" : " ^10.9.1" ,
60- "typescript" : " 4.8.4" ,
61- "semantic-release" : " ^19.0.5"
66+ "typescript" : " 4.8.4"
6267 },
6368 "engines" : {
6469 "node" : " >=14"
You can’t perform that action at this time.
0 commit comments