Skip to content

Commit 0e10f11

Browse files
committed
ci: switch to Yarn to resolve peer dependency conflicts
- Replace npm ci with yarn install for better peer dependency handling - Generate yarn.lock file for consistent dependency resolution - Update GitHub Actions cache configuration to use Yarn - Resolves @amanda-mitchell/semantic-release-npm-multiple compatibility issues
1 parent 640e4c6 commit 0e10f11

File tree

3 files changed

+8474
-9
lines changed

3 files changed

+8474
-9
lines changed

.github/workflows/main.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
uses: actions/setup-node@v4
3737
with:
3838
node-version: ${{ matrix.node-version }}
39-
cache: 'npm'
39+
cache: 'yarn'
4040

4141
- name: Cache TypeScript build
4242
uses: actions/cache@v4
@@ -61,7 +61,7 @@ jobs:
6161
${{ runner.os }}-test-
6262
6363
- name: Install dependencies
64-
run: npm ci --legacy-peer-deps
64+
run: yarn install --frozen-lockfile
6565

6666
# Auto-fix linting issues (only on push to main)
6767
- name: Check for fixable linting issues
@@ -187,11 +187,11 @@ jobs:
187187
uses: actions/setup-node@v4
188188
with:
189189
node-version: '20.x'
190-
cache: 'npm'
190+
cache: 'yarn'
191191
registry-url: 'https://registry.npmjs.org'
192192

193193
- name: Install dependencies
194-
run: npm ci --legacy-peer-deps
194+
run: yarn install --frozen-lockfile
195195

196196
- name: Download coverage artifacts
197197
uses: actions/download-artifact@v4
@@ -443,10 +443,10 @@ jobs:
443443
uses: actions/setup-node@v4
444444
with:
445445
node-version: '20.x'
446-
cache: 'npm'
446+
cache: 'yarn'
447447

448448
- name: Install dependencies
449-
run: npm ci --legacy-peer-deps
449+
run: yarn install --frozen-lockfile
450450

451451
- name: Build project
452452
run: npm run build

package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,7 @@
44
"description": "TypeScript CLI for markdown file operations with intelligent link refactoring",
55
"main": "dist/index.js",
66
"types": "dist/index.d.ts",
7-
"bin": {
8-
"markmv": "./dist/cli.js"
9-
},
7+
"bin": "./dist/cli.js",
108
"exports": {
119
".": {
1210
"types": "./dist/index.d.ts",

0 commit comments

Comments
 (0)