Skip to content
This repository was archived by the owner on Mar 7, 2025. It is now read-only.

Commit a33d53e

Browse files
committed
Switch to yarn v3
1 parent 1e37063 commit a33d53e

File tree

9 files changed

+5124
-3038
lines changed

9 files changed

+5124
-3038
lines changed

.github/workflows/ci.yml

Lines changed: 30 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,42 @@ jobs:
1919
with:
2020
node-version: 14
2121

22+
- name: Fetch cached dependencies
23+
uses: actions/cache@v2
24+
id: yarn-cache
25+
with:
26+
path: |
27+
**/.yarn/cache
28+
**/node_modules
29+
key: node-14-os-ubuntu-latest-yarn-${{ hashFiles('**/yarn.lock') }}
30+
restore-keys: |
31+
node-14-os-ubuntu-latest-yarn-
32+
2233
- name: Versions
23-
run: yarn versions
34+
run: |
35+
echo "yarn: $(yarn --version)"
36+
echo "npm : $(npm --version)"
37+
echo "node: $(node --version)"
38+
echo "process.versions:"
39+
yarn node -p process.versions
2440
2541
- name: Install dependencies
26-
run: yarn install --frozen-lockfile
42+
run: yarn install --immutable
2743

2844
- name: Lint
2945
run: yarn lint
3046

3147
- name: Check
3248
run: yarn check
49+
50+
- name: Audit production
51+
run: yarn npm audit --all --recursive --environment production
52+
53+
- name: Audit all
54+
continue-on-error: true
55+
run: yarn npm audit --all --recursive
56+
57+
- name: Check outdated dependencies
58+
continue-on-error: true
59+
if: github.ref == 'refs/heads/main'
60+
run: yarn outdated --url

.gitignore

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88,6 +88,15 @@ dist
8888
# https://nextjs.org/blog/next-9-1#public-directory-support
8989
# public
9090

91+
# yarn no zero-install
92+
.yarn/*
93+
!.yarn/patches
94+
!.yarn/releases
95+
!.yarn/plugins
96+
!.yarn/sdks
97+
!.yarn/versions
98+
.pnp.*
99+
91100
# vuepress build output
92101
.vuepress/dist
93102

.prettierignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
11
.github/ISSUE_TEMPLATE/
2+
.yarn/
3+
.pnp.cjs
24
coverage/
35
dist/

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 363 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-outdated.cjs

Lines changed: 33 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-berry.cjs

Lines changed: 631 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
nodeLinker: node-modules
2+
3+
plugins:
4+
- path: .yarn/plugins/@yarnpkg/plugin-outdated.cjs
5+
spec: 'https://github.com/mskelton/yarn-plugin-outdated/raw/main/bundles/@yarnpkg/plugin-outdated.js'
6+
- path: .yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs
7+
spec: '@yarnpkg/plugin-interactive-tools'
8+
9+
yarnPath: .yarn/releases/yarn-berry.cjs

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"format": "prettier --write .",
1010
"lint": "eslint .",
1111
"test": "echo \"No tests available\"",
12-
"prepublishOnly": "yarn clean && yarn install --cache-folder .yarn && yarn check",
12+
"prepublishOnly": "yarn clean && yarn install && yarn check",
1313
"generate": "node ./scripts/generate-rule.js"
1414
},
1515
"keywords": [

0 commit comments

Comments
 (0)