Skip to content

Commit 7bac63d

Browse files
committed
build: migrate to yarn v4
1 parent 6fb3dcb commit 7bac63d

19 files changed

+21330
-15822
lines changed

.codesandbox/ci.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"node": "16",
2+
"node": "18",
33
"sandboxes": []
44
}

.github/workflows/ci.yml

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -12,31 +12,30 @@ jobs:
1212
node:
1313
- 16
1414
- 18
15+
- 20
1516
os:
1617
- macos-latest
1718
- windows-latest
1819
- ubuntu-latest
1920
runs-on: ${{ matrix.os }}
2021
steps:
2122
- name: Checkout Repo
22-
uses: actions/checkout@v3
23+
uses: actions/checkout@v4
2324

24-
- name: Setup pnpm
25-
uses: pnpm/action-setup@v2
26-
with:
27-
version: latest
25+
- name: Enable Corepack
26+
run: corepack enable
2827

2928
- name: Setup Node.js ${{ matrix.node }}
30-
uses: actions/setup-node@v3
29+
uses: actions/setup-node@v4
3130
with:
3231
node-version: ${{ matrix.node }}
33-
cache: pnpm
32+
cache: yarn
3433

3534
- name: Install Dependencies
36-
run: pnpm i
35+
run: yarn --immutable
3736

3837
- name: Build, Lint and Test
39-
run: pnpm run-s build lint test typecov
38+
run: yarn run-s build lint test typecov
4039
env:
4140
EFF_NO_LINK_RULES: true
4241
PARSER_NO_WATCH: true

.github/workflows/codeql.yml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
name: 'CodeQL'
1+
name: CodeQL
22

33
on:
44
push:
5-
branches: ['main']
5+
branches:
6+
- main
67
pull_request:
7-
branches: ['main']
8+
branches:
9+
- main
810
schedule:
911
- cron: '38 16 * * 3'
1012

@@ -20,11 +22,12 @@ jobs:
2022
strategy:
2123
fail-fast: false
2224
matrix:
23-
language: [javascript]
25+
language:
26+
- javascript
2427

2528
steps:
2629
- name: Checkout
27-
uses: actions/checkout@v3
30+
uses: actions/checkout@v4
2831

2932
- name: Initialize CodeQL
3033
uses: github/codeql-action/init@v2

.github/workflows/pkg-size.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,15 @@ jobs:
1212

1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v3
15+
uses: actions/checkout@v4
1616

17-
- name: Setup Node.js
18-
uses: actions/setup-node@v3
17+
- name: Enable Corepack
18+
run: corepack enable
19+
20+
- name: Setup Node.js LTS
21+
uses: actions/setup-node@v4
1922
with:
20-
node-version: 16
23+
node-version: lts/*
2124

2225
- name: Package Size Report
2326
uses: pkg-size/action@v1

.github/workflows/release.yml

Lines changed: 9 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -11,31 +11,29 @@ jobs:
1111
runs-on: ubuntu-latest
1212
steps:
1313
- name: Checkout Repo
14-
uses: actions/checkout@v3
14+
uses: actions/checkout@v4
1515
with:
1616
# This makes Actions fetch all Git history so that Changesets can generate changelogs with the correct commits
1717
fetch-depth: 0
1818

19-
- name: Setup pnpm
20-
uses: pnpm/action-setup@v2
21-
with:
22-
version: latest
19+
- name: Enable Corepack
20+
run: corepack enable
2321

24-
- name: Setup Node.js 16
22+
- name: Setup Node.js LTS
2523
uses: actions/setup-node@v3
2624
with:
27-
node-version: 16
28-
cache: pnpm
25+
node-version: lts/*
26+
cache: yarn
2927

3028
- name: Install Dependencies
31-
run: pnpm i
29+
run: yarn --immutable
3230

3331
- name: Create Release Pull Request or Publish to npm
3432
id: changesets
3533
uses: changesets/action@v1
3634
with:
37-
publish: pnpm release
38-
version: pnpm run version
35+
publish: yarn release
36+
version: yarn run version
3937
commit: 'chore: release package(s)'
4038
title: 'chore: release package(s)'
4139
env:

.github/workflows/vercel.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@ jobs:
1010
deploy:
1111
runs-on: ubuntu-latest
1212
steps:
13-
- uses: actions/checkout@v3
13+
- uses: actions/checkout@v4
1414

1515
- name: Check Branch
1616
id: branch
1717
if: ${{ github.ref == 'refs/heads/main' }}
1818
run: |
19-
echo "::set-output name=args::--prod"
20-
echo "::set-output name=comment::false"
19+
echo "args=--prod" >> $GITHUB_OUTPUT
20+
echo "comment=false" >> $GITHUB_OUTPUT
2121
2222
- name: Deploy
2323
uses: amondnet/vercel-action@v25

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
.*cache
33
.type-coverage
44
.vercel
5+
.yarn/*
6+
!.yarn/plugins
57
coverage
68
lib
79
node_modules

.npmrc

Lines changed: 0 additions & 18 deletions
This file was deleted.

.prettierignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
.type-coverage
22
.vercel
3+
.yarn
34
coverage
45
dist
56
/auto-imports.d.ts

.stylelintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ dist
33
lib
44
LICENSE
55
*.json
6+
*.lock
67
*.log
78
*.ts
89
*.tsbuildinfo

0 commit comments

Comments
 (0)