Skip to content

Commit c23c793

Browse files
authored
Migrate from npm to yarn (#977)
1 parent 34d0bd5 commit c23c793

File tree

9 files changed

+4046
-4975
lines changed

9 files changed

+4046
-4975
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,16 +13,18 @@ jobs:
1313

1414
steps:
1515
- uses: actions/checkout@v4
16+
- name: corepack
17+
run: npm install -g corepack && corepack enable
1618
- uses: biomejs/setup-biome@v2
1719
- uses: actions/setup-node@v4
1820
with:
1921
node-version: ${{ matrix.node-version }}
20-
cache: "npm"
22+
cache: "yarn"
2123
- name: install
22-
run: npm install
24+
run: yarn
2325
- name: lint+format
2426
run: biome ci
2527
- name: build
26-
run: npm run build
28+
run: yarn build
2729
- name: test
28-
run: npm run test
30+
run: yarn test

.github/workflows/push.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,18 +16,19 @@ jobs:
1616
pull-requests: write
1717
steps:
1818
- uses: actions/checkout@v4
19+
- name: corepack
20+
run: npm install -g corepack && corepack enable
1921
- uses: actions/setup-node@v4
2022
with:
21-
cache: "npm"
23+
cache: "yarn"
2224

23-
- run: npm install
25+
- run: yarn
2426

2527
- name: Create Release Pull Request or Publish to npm
2628
id: changesets
2729
uses: changesets/action@v1
2830
with:
29-
version: npm run version
30-
publish: npm run release
31+
publish: yarn release
3132
title: Publish <version>
3233
env:
3334
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.npmrc

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarnrc.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
nodeLinker: node-modules

0 commit comments

Comments
 (0)