Skip to content

Commit 6fa8f5b

Browse files
committed
feat: add plugins to semantic release
1 parent 9b6f0ae commit 6fa8f5b

File tree

4 files changed

+1728
-91
lines changed

4 files changed

+1728
-91
lines changed

.github/workflows/main.yml

Lines changed: 15 additions & 6 deletions
Original file line numberDiff line numberDiff 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 }}

package.json

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,12 @@
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",
@@ -56,9 +61,9 @@
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"

0 commit comments

Comments
 (0)